[Bug c++/67047] GCC accepts ill-formed program with enumerator not representable in uintmax_t
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 29 09:23:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67047
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-07-29
Ever confirmed|0 |1
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes you can verify that with
static_assert( std::is_same<std::underlying_type<decltype(x)>::type, unsigned
__int128>::value, "");
I suppose there should be a diagnostic with -Wpedantic (Clang has a
-Wenum-too-large warning).
More information about the Gcc-bugs
mailing list