https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89025
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> --- This is tricky; we can't just move the start_enum code in cp_parser_enum_specifier before parsing the enum-base, because at that point we don't have the underlying type yet. None of the other compilers I've tried implement seem to implement this.