May 20, 2019 symbol not found | ||||
---|---|---|---|---|
| ||||
for (auto i = 0; i < L; i++) { for(auto c = 0; c < N; c++) { for (int j = -s; j < s; j++) { auto idx1 = i*j+c if (idx1 < 0 || idx1 >= data.length) v = 0; else { d[i] } ... for (auto i = 0; i < L; i++) /// Changing i to ii lets i above show up { putting a bp on d, i does not show up in the locals or auto list. adding i in the watch says symbol not found?!? j and c show up. there is a for loop that uses i later. Changing it to ii lets i show up?!?! Seems somehow they are being canceled out. Not if it's just two loops or what, but it seems the id's collide somehow. |
May 20, 2019 Re: symbol not found | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex | On 20/05/2019 04:24, Alex wrote: > for (auto i = 0; i < L; i++) > { > for(auto c = 0; c < N; c++) > { > > for (int j = -s; j < s; j++) > { > auto idx1 = i*j+c > > if (idx1 < 0 || idx1 >= data.length) v = 0; > else > { > d[i] > } > ... > > for (auto i = 0; i < L; i++) /// Changing i to ii lets i above show up > { > > putting a bp on d, i does not show up in the locals or auto list. > > adding i in the watch says symbol not found?!? > > j and c show up. > > there is a for loop that uses i later. Changing it to ii lets i show up?!?! > > Seems somehow they are being canceled out. > > Not if it's just two loops or what, but it seems the id's collide somehow. Please provide a compilable example. BTW: bugs are better reported at https://issues.dlang.org/enter_bug.cgi so that it's easier to keep track of progress. |
Copyright © 1999-2021 by the D Language Foundation