https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109532

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> 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.

I should say this is from the C++ standard there.
-fshort-enums does not change the language, only ABI.

Reply via email to