[Bug c++/88320] GCC suggests variables that don't exist yet
jg at jguk dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 5 17:31:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88320
--- Comment #9 from Jonny Grant <jg at jguk dot org> ---
(In reply to David Malcolm from comment #8)
> 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.
Being better than Clang is always a plus.
More information about the Gcc-bugs
mailing list