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++/37281] bad code generation with enum and -m32



------- Comment #2 from gmorin1 at bloomberg dot net  2008-08-29 16:57 -------
I thought it was correct because it seems that the standard allows to cast
explicity inside the range.  The range is not the one of the integral type but
the one of smallest bit field that can stop all the values.  So you're
completely correct.  Sorry.


-- 

gmorin1 at bloomberg dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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