This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52987] bogus expected ; before for undeclared type
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Apr 2012 04:23:33 +0000
- Subject: [Bug c++/52987] bogus expected ; before for undeclared type
- Auto-submitted: auto-generated
- References: <bug-52987-4@http.gcc.gnu.org/bugzilla/>
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;
^