[Bug c/36113] fix C enumerators

2022-10-18 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113 Joseph S. Myers changed: What|Removed |Added Target Milestone|--- |13.0 Resolution|---

[Bug c/36113] fix C enumerators

2022-10-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
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

[Bug c/36113] fix C enumerators

2021-09-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic, wrong-code --- Comment #6

[Bug c/36113] fix C enumerators

2008-11-18 Thread mrs at apple dot com
--- 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

[Bug c/36113] fix C enumerators

2008-11-14 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c/36113] fix C enumerators

2008-11-14 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c/36113] fix C enumerators

2008-05-05 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c/36113] fix C enumerators

2008-05-02 Thread mrs at apple dot com
--- 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|

[Bug c/36113] fix C enumerators

2008-05-02 Thread mrs at apple dot com
-- mrs at apple dot com changed: What|Removed |Added Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113