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: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2004 03:58:27 -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 bangerth at dealii dot org 2004-08-14 03:58 -------
The size of a variable of enum type is exactly the number of bits needed
to represent the largest member of the enum (so that you can bit-or
elements). The result therefore makes perfect sense.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17022