[Bug c++/52987] bogus expected ; before for undeclared type

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 24 04:24:00 GMT 2012


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;

More information about the Gcc-bugs mailing list