[Bug c/88625] c11: GCC Allows enumerator value not representable in type int.

anders.granlund.0 at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Dec 27 22:22:00 GMT 2018


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()
  {
  }


More information about the Gcc-bugs mailing list