[Bug c/7356] syntax errors immediately before an #include are reported for within the included file
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 25 23:58:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7356
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Fixed by r254093; for the case in comment #0, trunk now emits:
t.c:1:2: error: expected ‘;’ before ‘typedef’
a//sample
^
;
t.c:5:27: error: conflicting types for ‘argc’
int main(int argc, char** argc) {}
~~~~~~~^~~~
t.c:5:14: note: previous definition of ‘argc’ was here
int main(int argc, char** argc) {}
~~~~^~~~
(did anyone spot the redefinition of "argc" in the 15 years since this was
opened?)
More information about the Gcc-bugs
mailing list