https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88625
--- Comment #1 from Anders Granlund <anders.granlund.0 at gmail dot com> --- Forgot to include the include of a header file in the test case: #include <limits.h> enum E { x = UINT_MAX }; int main() { }