This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37281] bad code generation with enum and -m32
- From: "gmorin1 at bloomberg dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Aug 2008 16:57:42 -0000
- Subject: [Bug c++/37281] bad code generation with enum and -m32
- References: <bug-37281-9476@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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