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/17844] -fshort-enums: ISO/IEC 9899:1999 : wrong size of identifier in enumerator list


------- Additional Comments From jsm at polyomino dot org dot uk  2004-10-05 15:47 -------
Subject: Re:  -fshort-enums: ISO/IEC 9899:1999 : wrong size of
 identifier in enumerator list

On Tue, 5 Oct 2004, pinskia at gcc dot gnu dot org wrote:

> Invalid, this is what the option -fshort-enum does, it violates the C 
> standard :).

Wrong.  It changes the type with which enums are compatible to a different 
type which also conforms to the C standard.  Regardless of the type with 
which an enum is compatible, the enumeration constants should have type 
int - not the enumeration type.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17844


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