public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug modula2/114380] New: Incorrect type specified in an error message @ 2024-03-18 15:46 gaius at gcc dot gnu.org 2024-03-18 15:47 ` [Bug modula2/114380] " gaius at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: gaius at gcc dot gnu.org @ 2024-03-18 15:46 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114380 Bug ID: 114380 Summary: Incorrect type specified in an error message Product: gcc Version: 14.0 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 source code: MODULE tiny4 ; FROM SYSTEM IMPORT WORD ; PROCEDURE func () : WORD ; BEGIN RETURN WORD (0) END func ; VAR b: BITSET ; BEGIN b := func () - {6..31} END tiny4. when compiled should complain about BITSET rather than CARDINAL. $ gm2 tiny4.mod tiny4.mod:13:17: error: In program module 'tiny4': type incompatibility between 'CARDINAL' and 'WORD' 13 | b := func () - {6..31} | ~~~~~~~~^~~~~~~~~ ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug modula2/114380] Incorrect type specified in an error message 2024-03-18 15:46 [Bug modula2/114380] New: Incorrect type specified in an error message gaius at gcc dot gnu.org @ 2024-03-18 15:47 ` gaius at gcc dot gnu.org 2024-03-18 16:02 ` gaius at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: gaius at gcc dot gnu.org @ 2024-03-18 15:47 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114380 Gaius Mulley <gaius at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-03-18 Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Gaius Mulley <gaius at gcc dot gnu.org> --- Confirmed. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug modula2/114380] Incorrect type specified in an error message 2024-03-18 15:46 [Bug modula2/114380] New: Incorrect type specified in an error message gaius at gcc dot gnu.org 2024-03-18 15:47 ` [Bug modula2/114380] " gaius at gcc dot gnu.org @ 2024-03-18 16:02 ` gaius at gcc dot gnu.org 2024-03-18 16:04 ` gaius at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: gaius at gcc dot gnu.org @ 2024-03-18 16:02 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114380 --- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 57725 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57725&action=edit Proposed fix PR modula2/114380 Incorrect type specified in an error message This patch corrects an error message relating to a variable of a SET type. The bugfix is not to skip over set types (in GetLowestType). gcc/m2/ChangeLog: * gm2-compiler/SymbolTable.mod (GetLowestType): Do not skip over a set type, but return sym. gcc/testsuite/ChangeLog: * gm2/pim/fail/badset7.mod: New test. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug modula2/114380] Incorrect type specified in an error message 2024-03-18 15:46 [Bug modula2/114380] New: Incorrect type specified in an error message gaius at gcc dot gnu.org 2024-03-18 15:47 ` [Bug modula2/114380] " gaius at gcc dot gnu.org 2024-03-18 16:02 ` gaius at gcc dot gnu.org @ 2024-03-18 16:04 ` gaius at gcc dot gnu.org 2024-03-18 16:41 ` cvs-commit at gcc dot gnu.org 2024-03-18 16:41 ` gaius at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: gaius at gcc dot gnu.org @ 2024-03-18 16:04 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114380 --- Comment #3 from Gaius Mulley <gaius at gcc dot gnu.org> --- $ gm2 tiny4.mod tiny4.mod:13:17: error: In program module ‘tiny4’: type incompatibility between ‘BITSET’ and ‘WORD’ 13 | b := func () - {6..31} | ~~~~~~~~^~~~~~~~~ ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug modula2/114380] Incorrect type specified in an error message 2024-03-18 15:46 [Bug modula2/114380] New: Incorrect type specified in an error message gaius at gcc dot gnu.org ` (2 preceding siblings ...) 2024-03-18 16:04 ` gaius at gcc dot gnu.org @ 2024-03-18 16:41 ` cvs-commit at gcc dot gnu.org 2024-03-18 16:41 ` gaius at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2024-03-18 16:41 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114380 --- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Gaius Mulley <gaius@gcc.gnu.org>: https://gcc.gnu.org/g:d2029bbc69df7341775faf6cf1aa13d978c223a1 commit r14-9520-gd2029bbc69df7341775faf6cf1aa13d978c223a1 Author: Gaius Mulley <gaiusmod2@gmail.com> Date: Mon Mar 18 16:40:35 2024 +0000 PR modula2/114380 Incorrect type specified in an error message This patch corrects an error message relating to a variable of a SET type. The bugfix is not to skip over set types (in GetLowestType). gcc/m2/ChangeLog: PR modula2/114380 * gm2-compiler/SymbolTable.mod (GetLowestType): Do not skip over a set type, but return sym. gcc/testsuite/ChangeLog: PR modula2/114380 * gm2/pim/fail/badset7.mod: New test. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com> ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug modula2/114380] Incorrect type specified in an error message 2024-03-18 15:46 [Bug modula2/114380] New: Incorrect type specified in an error message gaius at gcc dot gnu.org ` (3 preceding siblings ...) 2024-03-18 16:41 ` cvs-commit at gcc dot gnu.org @ 2024-03-18 16:41 ` gaius at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: gaius at gcc dot gnu.org @ 2024-03-18 16:41 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114380 Gaius Mulley <gaius at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #5 from Gaius Mulley <gaius at gcc dot gnu.org> --- Closing now that the patch has been applied. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-03-18 16:41 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-03-18 15:46 [Bug modula2/114380] New: Incorrect type specified in an error message gaius at gcc dot gnu.org 2024-03-18 15:47 ` [Bug modula2/114380] " gaius at gcc dot gnu.org 2024-03-18 16:02 ` gaius at gcc dot gnu.org 2024-03-18 16:04 ` gaius at gcc dot gnu.org 2024-03-18 16:41 ` cvs-commit at gcc dot gnu.org 2024-03-18 16:41 ` 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).