[Bug c++/60335] confused by earlier errors, bailing out
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 4 04:14:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60335
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |needs-bisection
Status|ASSIGNED |WAITING
CC| |egallager at gcc dot gnu.org,
| |pinskia at gcc dot gnu.org
Severity|normal |minor
--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
I no longer get an ICE on this code with GCC 7. Was this fixed at some point?
The output I get is:
$ gcc -c 60335.c
60335.c:3:30: warning: 'struct bar0' declared inside parameter list will not be
visible outside of this definition or declaration
int baz1(void bar0, struct bar0 {} bar3);
^~~~
60335.c:3:17: warning: parameter 1 ('bar0') has void type
int baz1(void bar0, struct bar0 {} bar3);
^~~~
60335.c:3:7: error: field 'baz1' declared as a function
int baz1(void bar0, struct bar0 {} bar3);
^~~~
$
More information about the Gcc-bugs
mailing list