public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug modula2/107959] New: Incorrect aggregate constant type causes ICE
@ 2022-12-03 16:55 gaius at gcc dot gnu.org
2022-12-03 17:36 ` [Bug modula2/107959] " gaius at gcc dot gnu.org
2022-12-03 17:37 ` gaius at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: gaius at gcc dot gnu.org @ 2022-12-03 16:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107959
Bug ID: 107959
Summary: Incorrect aggregate constant type causes ICE
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: modula2
Assignee: gaius at gcc dot gnu.org
Reporter: gaius at gcc dot gnu.org
Target Milestone: ---
The module below causes an ICE.
MODULE badipv4 ;
TYPE
IPV4 = ARRAY [1..4] OF CHAR ;
CONST
Loopback = IPV4 {127, 0, 0, 1} ;
END badipv4.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug modula2/107959] Incorrect aggregate constant type causes ICE
2022-12-03 16:55 [Bug modula2/107959] New: Incorrect aggregate constant type causes ICE gaius at gcc dot gnu.org
@ 2022-12-03 17:36 ` gaius at gcc dot gnu.org
2022-12-03 17:37 ` gaius at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: gaius at gcc dot gnu.org @ 2022-12-03 17:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107959
--- Comment #1 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Now fixed in git.
$ gm2 -fiso badipv4.mod
badipv4.mod:7:12: error: In procedure ‘ForeachIndiceInIndexDo’: expecting CHAR
datatype and not ‘127’ a ‘Modula-2 base Z’ in the 0th component of the ‘IPV4’
array
7 | Loopback = IPV4 {127, 0, 0, 1} ;
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
badipv4.mod:7:12: error: expecting CHAR datatype and not ‘1’ a ‘Modula-2 base
Z’ in the 3rd component of the ‘IPV4’ array
badipv4.mod:7:12: error: expecting CHAR datatype and not ‘0’ a ‘Modula-2 base
Z’ in the 2nd component of the ‘IPV4’ array
badipv4.mod:7:12: error: expecting CHAR datatype and not ‘0’ a ‘Modula-2 base
Z’ in the 1st component of the ‘IPV4’ array
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug modula2/107959] Incorrect aggregate constant type causes ICE
2022-12-03 16:55 [Bug modula2/107959] New: Incorrect aggregate constant type causes ICE gaius at gcc dot gnu.org
2022-12-03 17:36 ` [Bug modula2/107959] " gaius at gcc dot gnu.org
@ 2022-12-03 17:37 ` gaius at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: gaius at gcc dot gnu.org @ 2022-12-03 17:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107959
Gaius Mulley <gaius at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Tested and committed bugfix.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-03 17:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-03 16:55 [Bug modula2/107959] New: Incorrect aggregate constant type causes ICE gaius at gcc dot gnu.org
2022-12-03 17:36 ` [Bug modula2/107959] " gaius at gcc dot gnu.org
2022-12-03 17:37 ` gaius at gcc dot gnu.org
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).