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++/17022] Behavior of out-of-range enums


------- Additional Comments From bangerth at dealii dot org  2004-08-14 03:58 -------
The size of a variable of enum type is exactly the number of bits needed 
to represent the largest member of the enum (so that you can bit-or 
elements). The result therefore makes perfect sense. 
 
W. 

-- 


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


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