[Bug c/123435] [15/16 regression] ICE extern enum and volatile int on the same variable

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 7 08:59:22 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123435

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[15/16 regression] ICE      |[15/16 regression] ICE
                   |during type checking when   |extern enum and volatile
                   |diagnosing conflicting      |int on the same variable
                   |declarations between enum   |
                   |and integer types.          |

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
enum E { E1 = -1, E2 = 0, E3 = 1 };
const volatile enum E i2;
extern int i2;
```


More information about the Gcc-bugs mailing list