This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/15236] pedantic switch modifies treatment of non-ISO compliant enumerations


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]