This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/24253] parse error expected at empty struct declaration
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2005 11:16:38 -0000
- Subject: [Bug c/24253] parse error expected at empty struct declaration
- References: <bug-24253-11477@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-07 11:16 -------
Using -std=c99 -pedantic-errors:
earth:~>gcc t.c -std=c99 -pedantic-errors
t.c:1: error: struct has no members
t.c:1: error: unnamed struct/union that defines no instances
earth:~>~/ia32_linux_gcc3_4/bin/gcc t.c -std=c99 -pedantic-errors
t.c:1: error: struct has no members
t.c:1: error: unnamed struct/union that defines no instances
earth:~>~/ia32_linux_gcc3_0/bin/gcc t.c -std=c99 -pedantic-errors
t.c:1: struct has no members
t.c:1: unnamed struct/union that defines no instances
So this is invalid.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24253