https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109532
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- That is because a scopped enum has an underlying type of int if not supplied. >From [dcl.enum]/5: For a scoped enumeration type, the underlying type is int if it is not explicitly specified.