https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116048
Gaius Mulley <gaius at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-07-23 Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Gaius Mulley <gaius at gcc dot gnu.org> --- I think the solution is to track the context of valid qualidents kinds during parsing. This should be done for constant blocks, type declarations and variable declarations. If the error is non recoverable an error message including an explanation of the context should be emitted before exiting (without an ICE). The implementation PR-115957 used a number of boolean variables - these could be replaced by the state tracking as above - hopefully resulting in cleaner code.