[Bug modula2/116048] cc1gm2 ICE when encountering qualident of the wrong kind

gaius at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 23 12:36:59 GMT 2024


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.


More information about the Gcc-bugs mailing list