[Bug c++/88320] GCC suggests variables that don't exist yet
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 5 17:16:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88320
--- Comment #8 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
FWIW, clang trunk currently gives the same erroneous suggestion:
<source>:4:19: error: use of undeclared identifier 'aresults'; did you mean
'aresult'?
int aresult = aresults +1;
^~~~~~~~
aresult
<source>:4:9: note: 'aresult' declared here
int aresult = aresults +1;
^
1 error generated.
More information about the Gcc-bugs
mailing list