https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, error-recovery Status|UNCONFIRMED |NEW Last reconfirmed| |2017-08-28 CC| |egallager at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> --- Confirmed, here's an example: $ cat 82013.c && /usr/local/bin/gcc -c 82013.c int foo(int) int foo(int i) { return i + i; } 82013.c: In function ‘foo’: 82013.c:4:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token { ^ 82013.c:1:1: error: parameter name omitted int foo(int) ^~~ 82013.c:6:1: error: expected ‘{’ at end of input } ^ $ For comparison clang says: $ /sw/opt/llvm-3.1/bin/clang -c 82013.c 82013.c:1:13: error: expected ';' after top level declarator int foo(int) ^ ; 1 error generated. $