[Bug c++/93674] GCC eliminates conditions it should not, when strict-enums is on

rearnsha at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 11 13:57:00 GMT 2020


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

--- Comment #5 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
I'm seeing it on AArch64 for master.  Adding an enum value with an initializer
of -1 causes the problem to go away.  So it looks like the 'unsigned'
conversion is happening too soon.


More information about the Gcc-bugs mailing list