This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/88320] GCC suggests variables that don't exist yet
- From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Dec 2018 17:15:47 +0000
- Subject: [Bug c++/88320] GCC suggests variables that don't exist yet
- Auto-submitted: auto-generated
- References: <bug-88320-4@http.gcc.gnu.org/bugzilla/>
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.