public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gaius at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/114296] ICE when attempting to create a constant set with a variable element Date: Sun, 17 Mar 2024 14:55:23 +0000 [thread overview] Message-ID: <bug-114296-4-bfI9IfLZCF@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114296-4@http.gcc.gnu.org/bugzilla/> 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}; | ^~~~~~~~
prev parent reply other threads:[~2024-03-17 14:55 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-10 11:14 [Bug modula2/114296] New: " gaius at gcc dot gnu.org 2024-03-10 11:14 ` [Bug modula2/114296] " gaius at gcc dot gnu.org 2024-03-16 18:00 ` gaius at gcc dot gnu.org 2024-03-17 14:50 ` cvs-commit at gcc dot gnu.org 2024-03-17 14:55 ` gaius at gcc dot gnu.org [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-114296-4-bfI9IfLZCF@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).