https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91950
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- The range of values of a scoped enumeration type is the range of values of its underlying type. The underlying type here is int, so any value of type int is a valid value of type foo.