This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17022] Behavior of out-of-range enums
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2004 06:11:49 -0000
- Subject: [Bug c++/17022] Behavior of out-of-range enums
- References: <20040813225931.17022.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-14 06:11 -------
Actually it is not undefined or implementation defined by the standard, it is unspecified which is a
totally different ball game and we just define it as constants do the get anded, likewise with
optimization where you can prove that the variable is a constant. Otherwise it is the same value as
before this change.
See: <http://www.devx.com/tips/Tip/12684> for unspecified vs. undefined
Also see PR 15330 where we defined the defintion of what we want to be able to do which I am going
to mark as a dup of.
*** This bug has been marked as a duplicate of 15330 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17022