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

Gaius Mulley <gaius at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Closing now that the patch has been applied.  The ICE was caused by assuming
that the set elements were constants.  The patch contains a check and also
improves the token accuracy of the set sub expression.

The test code above now causes the following correct error message:

$ gm2 tiny2.mod 
tiny2.mod:8:10: error: a constant set can only contain constant set elements,
‘x’ is not a constant
    8 |    ch := {7 .. x};
      |          ^~~~~~~~

Reply via email to