"Laura Tardivo" <[EMAIL PROTECTED]> writes: > I whant to know if the enum definition was changed in the last versions of > gcc because in the ansi C you can not define: > > enum COLOR{RED,GREEN,}; > > the last comma only is correct if you are defining an initialization of a > variable. But it is allowed in gcc 4.1.1
This question is not appropriate for the gcc@gcc.gnu.org mailing list, which is a mailing list for gcc developers. It would be appropriate for [EMAIL PROTECTED] gcc accepts the trailing comma by default. If you use the -pedantic option you will get a warning. See the description of -pedantic in the gcc manual. Ian