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;
^