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/38714] New: gcc allows last member of a struct or union without a semicolon


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


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