This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12242] g++ should warn about out-of-range int->enum conversions
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Feb 2008 11:34:18 -0000
- Subject: [Bug c++/12242] g++ should warn about out-of-range int->enum conversions
- References: <bug-12242-702@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from rguenth at gcc dot gnu dot org 2008-02-15 11:34 -------
It should probably say that it will truncate the value, which is what will
happen.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12242