https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113153
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Note clang is just as bad: ``` <source>:1:16: error: expected identifier or '{' 1 | enum class register { rax, rcx, rdx, rbx }; | ^ 1 error generated. ``` EDG/ICC is slightly better: ``` <source>(1): error: expected an identifier enum class register { rax, rcx, rdx, rbx }; ^ ``` MSVC is bad too: ``` <source>(1): error C2332: 'enum': missing tag name <source>(1): error C2059: syntax error: 'function-style cast' <source>(1): error C2143: syntax error: missing ';' before '{' <source>(1): error C2447: '{': missing function header (old-style formal list?) ```