public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/24254] New: parse error expected at empty struct declaration
@ 2005-10-07 11:23 alexander dot floh at fh-hagenberg dot at
2005-10-07 11:28 ` [Bug c/24254] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: alexander dot floh at fh-hagenberg dot at @ 2005-10-07 11:23 UTC (permalink / raw)
To: gcc-bugs
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=24254
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/24254] parse error expected at empty struct declaration
2005-10-07 11:23 [Bug c/24254] New: parse error expected at empty struct declaration alexander dot floh at fh-hagenberg dot at
@ 2005-10-07 11:28 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-07 11:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-07 11:28 -------
*** This bug has been marked as a duplicate of 24253 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24254
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-07 11:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-07 11:23 [Bug c/24254] New: parse error expected at empty struct declaration alexander dot floh at fh-hagenberg dot at
2005-10-07 11:28 ` [Bug c/24254] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).