public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug modula2/114418] New: Missing import of TSIZE from system causes ICE
@ 2024-03-21 17:46 gaius at gcc dot gnu.org
  2024-03-21 17:47 ` [Bug modula2/114418] " gaius at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gaius at gcc dot gnu.org @ 2024-03-21 17:46 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114418
           Summary: Missing import of TSIZE from system causes ICE
           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: ---

As reported on the mailing list.  gm2 will ICE if given:

MODULE missingtsize ;

CONST
   NoOfBytes = TSIZE (CARDINAL) ;

BEGIN

END missingtsize.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug modula2/114418] Missing import of TSIZE from system causes ICE
  2024-03-21 17:46 [Bug modula2/114418] New: Missing import of TSIZE from system causes ICE gaius at gcc dot gnu.org
@ 2024-03-21 17:47 ` gaius at gcc dot gnu.org
  2024-03-21 18:31 ` cvs-commit at gcc dot gnu.org
  2024-03-21 18:31 ` gaius at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: gaius at gcc dot gnu.org @ 2024-03-21 17:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2024-03-21

--- Comment #1 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Confirmed.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug modula2/114418] Missing import of TSIZE from system causes ICE
  2024-03-21 17:46 [Bug modula2/114418] New: Missing import of TSIZE from system causes ICE gaius at gcc dot gnu.org
  2024-03-21 17:47 ` [Bug modula2/114418] " gaius at gcc dot gnu.org
@ 2024-03-21 18:31 ` cvs-commit at gcc dot gnu.org
  2024-03-21 18:31 ` gaius at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-03-21 18:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 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:ba744d50ac0360f7992a42494db766f6548913e3

commit r14-9598-gba744d50ac0360f7992a42494db766f6548913e3
Author: Gaius Mulley <gaiusmod2@gmail.com>
Date:   Thu Mar 21 18:30:23 2024 +0000

    PR modula2/114418 missing import of TSIZE from system causes ICE

    This patch detects whether the symbol func is NulSym before generating
    an error and if so just uses the token location and fixed string to
    generate an error message.

    gcc/m2/ChangeLog:

            PR modula2/114418
            * gm2-compiler/PCSymBuild.mod (PushConstFunctionType): Check
            func against NulSym and issue an error.

    gcc/testsuite/ChangeLog:

            PR modula2/114418
            * gm2/pim/fail/missingtsize.mod: New test.
            * gm2/pim/fail/missingtsize2.mod: New test.

    Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug modula2/114418] Missing import of TSIZE from system causes ICE
  2024-03-21 17:46 [Bug modula2/114418] New: Missing import of TSIZE from system causes ICE gaius at gcc dot gnu.org
  2024-03-21 17:47 ` [Bug modula2/114418] " gaius at gcc dot gnu.org
  2024-03-21 18:31 ` cvs-commit at gcc dot gnu.org
@ 2024-03-21 18:31 ` gaius at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: gaius at gcc dot gnu.org @ 2024-03-21 18:31 UTC (permalink / raw)
  To: gcc-bugs

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

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-21 18:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-21 17:46 [Bug modula2/114418] New: Missing import of TSIZE from system causes ICE gaius at gcc dot gnu.org
2024-03-21 17:47 ` [Bug modula2/114418] " gaius at gcc dot gnu.org
2024-03-21 18:31 ` cvs-commit at gcc dot gnu.org
2024-03-21 18:31 ` 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).