This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Is it correct: enum {a=6,}; ?
- To: zvyagin at gams dot ihep dot su
- Subject: Re: Is it correct: enum {a=6,}; ?
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Thu, 12 Aug 1999 08:09:41 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <Pine.LNX.3.96.990811113921.4976B-100000@gams.ihep.su>
> 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