This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/24253] New: parse error expected at empty struct declaration
- From: "alexander dot floh at fh-hagenberg dot at" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2005 11:14:17 -0000
- Subject: [Bug c/24253] New: parse error expected at empty struct declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
when declaring an empty struct like
struct {};
there should be a parse error when compiling with -std=c99, since there seem to
be no grammar rule in the c-standard[1] which allows the empty curled braces in
a struct declaration.
visual studio 2003 and the edg parser report this as a parse error.
[1] http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1124.pdf
--
Summary: parse error expected at empty struct declaration
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: alexander dot floh at fh-hagenberg dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24253