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]

Re: Is it correct: enum {a=6,}; ?


> Both egcs-1.1.2 and gcc-2.95 think that line
> enum {a=6,};
> is correct. Why this is not parse error (extra symbol ',' in the line)?

gcc -pedantic says

warning: comma at end of enumerator list

Martin


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