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++/15330] inconsistent slicing on cast of int to enum


------- Additional Comments From mark at codesourcery dot com  2004-05-06 21:42 -------
Subject: Re:  inconsistent slicing on cast of int to enum

bangerth at dealii dot org wrote:

>------- Additional Comments From bangerth at dealii dot org  2004-05-06 21:31 -------
>So do I (and I'll take action :-) 
> 
>The enum is supposed to be represented in a bitfield that is just as large 
>as to hold the biggest possible enum value. We shouldn't prohibit the 
>compiler to not honor this information. 
>  
>
Agreed.



-- 


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


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