https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99968
--- Comment #7 from Patrick Palka <ppalka at gcc dot gnu.org> --- Slightly more reduced: template <class T> struct A { using type = T; static const bool value = false; }; enum E { e0 = __is_enum(E), e1 = A<E>::value }; Compiled with -std=c++11 -g