This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15236] pedantic switch modifies treatment of non-ISO compliant enumerations
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Apr 2004 20:40:41 -0000
- Subject: [Bug c/15236] pedantic switch modifies treatment of non-ISO compliant enumerations
- References: <20040430201707.15236.kevin.hall@motioneng.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-04-30 20:40 -------
As an aside: the fact that we widen the integer type (without -pedantic)
to an 8-byte type is something that changed between 2.95 and 3.2:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/gcc x.c
g/x> ./a.out
sizeof(MyEnum) = 8
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/gcc x.c
g/x> ./a.out
sizeof(MyEnum) = 8
g/x> /home/bangerth/bin/gcc-3.2*/bin/gcc x.c
g/x> ./a.out
sizeof(MyEnum) = 8
g/x> /home/bangerth/bin/gcc-2*/bin/gcc x.c
g/x> ./a.out
sizeof(MyEnum) = 4
I don't know, though, whether that was a conscious decision or just by
accident.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.3.1 3.3.3 3.4.0 3.5.0 |3.3.1 3.3.3 3.4.0 3.5.0
| |3.2.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15236