[Bug c/105156] No diagnostic for `enum { toobig = UINT_MAX }`

Keith.S.Thompson at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Apr 4 23:18:53 GMT 2022


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

--- Comment #4 from Keith Thompson <Keith.S.Thompson at gmail dot com> ---
OK, that explains the bug.

It sounds like the code that suppresses warnings in system headers needs
to be a bit more clever. Using UINT_MAX here isn't an error in the header.


More information about the Gcc-bugs mailing list