http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59211
--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> --- (In reply to Daniel Krügler from comment #3) > IMO the explicit conversion is necessary here and the fact that it doesn't > work without it is not a bug. Note that a scoped enumeration type does not > implicitly convert to integral types and only a very small number of core > language constructs accept scoped enums without a case. I filed PR 59281 for the fact that scoped enums are accepted in attribute((constructor)) without a cast.