This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/38714] New: gcc allows last member of a struct or union without a semicolon
- From: "get dot sonic at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2009 11:41:18 -0000
- Subject: [Bug c/38714] New: gcc allows last member of a struct or union without a semicolon
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
struct S
{
int m
};
This compiles as a C program (not as C++) with "warning: no semicolon at end of
struct or union".
I checked the c99 document and the semicolon seems to be mandatory.
--
Summary: gcc allows last member of a struct or union without a
semicolon
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: get dot sonic at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38714