https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113
Joseph S. Myers changed:
What|Removed |Added
Target Milestone|--- |13.0
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113
--- Comment #7 from CVS Commits ---
The master branch has been updated by Joseph Myers :
https://gcc.gnu.org/g:3b3083a598ca3f4b6203284e01ed39ab6ff0844f
commit r13-3360-g3b3083a598ca3f4b6203284e01ed39ab6ff0844f
Author: Joseph Myers
Date: Tue
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113
Andrew Pinski changed:
What|Removed |Added
Keywords||diagnostic, wrong-code
--- Comment #6
--- Comment #5 from mrs at apple dot com 2008-11-18 20:26 ---
The C standard mandates that all enumeration constants have the same type, gcc
violates this requirement.
--
mrs at apple dot com changed:
What|Removed |Added
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-11-15 00:05 ---
t.c:8: warning: ISO C restricts enumerator values to range of 'int'
t.c:14: warning: left shift count = width of type
This is still correct. Even if we had sizeof(MyEnum) == 2, the types of dummy
will still be an
--- Comment #4 from pinskia at gcc dot gnu dot org 2008-11-15 00:11 ---
*** Bug 36651 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-05-05 06:19 ---
I don't see why we want C++ compatibility here since the C99 standard is clear
that the type of SomeConstant is still int.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113
--- Comment #1 from mrs at apple dot com 2008-05-02 20:16 ---
Radar 5881867
--
mrs at apple dot com changed:
What|Removed |Added
CC|
--
mrs at apple dot com changed:
What|Removed |Added
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113