[Bug c++/52987] bogus expected ; before for undeclared type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52987 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |6.0 --- Comment #4 from Paolo Carlini paolo.carlini at oracle dot com --- Fixed.
[Bug c++/52987] bogus expected ; before for undeclared type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52987 --- Comment #3 from paolo at gcc dot gnu.org paolo at gcc dot gnu.org --- Author: paolo Date: Thu Jul 23 10:11:48 2015 New Revision: 226097 URL: https://gcc.gnu.org/viewcvs?rev=226097root=gccview=rev Log: /cp 2015-07-23 Paolo Carlini paolo.carl...@oracle.com PR c++/52987 * parser.c (cp_parser_simple_declaration): Robustify check avoiding redundant error messages. /testsuite 2015-07-23 Paolo Carlini paolo.carl...@oracle.com PR c++/52987 * g++.dg/parse/error57.C: New. * g++.dg/expr/string-2.C: Update. Added: trunk/gcc/testsuite/g++.dg/parse/error57.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/expr/string-2.C
[Bug c++/52987] bogus expected ; before for undeclared type
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52987 --- Comment #2 from Paolo Carlini paolo.carlini at oracle dot com --- The first half is fixed for 4.9.0 (r200150).
[Bug c++/52987] bogus expected ; before for undeclared type
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52987 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED |NEW Last reconfirmed||2012-04-24 Ever Confirmed|0 |1 Severity|normal |enhancement --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2012-04-24 04:23:33 UTC --- Confirmed. The C front-end handles this much better: t.c: In function ‘foo’: t.c:2:3: error: unknown type name ‘x’ x var; ^