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

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Right, which is as per [dcl.enum] p8.

A type which only allows values corresponding to named enumerators is not
possible in standard C++.

Reply via email to