This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/24253] parse error expected at empty struct declaration



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]