https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15766
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |msebor at gcc dot gnu.org Known to work| |6.0 Resolution|--- |FIXED Known to fail| | --- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> --- With recent trunk of 6.0 GCC prints the following diagnostics for the test program. I've added a test for the first diagnostic to the test suite in r233765. Resolving as fixed. t.c:1:23: error: ‘A’ does not name a type void confusion1(const A& a) {} ^ t.c: In function ‘void confusion1(const int&)’: t.c:1:26: warning: unused parameter ‘a’ [-Wunused-parameter] void confusion1(const A& a) {} ^ t.c: In function ‘void confusion2()’: t.c:4:24: error: expected ‘)’ before ‘;’ token { for (int i = 0; ; i++;) {} ^ t.c:4:25: error: expected primary-expression before ‘)’ token { for (int i = 0; ; i++;) {} ^