public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "simon at pushface dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/112781] New: [13?/14 regression] ICE in generic instantiation
Date: Thu, 30 Nov 2023 12:27:56 +0000	[thread overview]
Message-ID: <bug-112781-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 112781
           Summary: [13?/14 regression] ICE in generic instantiation
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: simon at pushface dot org
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

Created attachment 56727
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56727&action=edit
Reproducer: to be gnatchopped

I'm not sure this is in fact a regression in 13; with 13.1.0, the
program builds, but when run reports

    $ ./test
    Hello World

    raised PROGRAM_ERROR : test.adb:4 finalize/adjust raised exception

With 14.0.0, built from LATEST, we get a bug box:

$ gnatmake test.adb 
gcc -c test.adb
+===========================GNAT BUG DETECTED==============================+
| 14.0.0 20231126 (experimental) (x86_64-apple-darwin21) Assert_Failure
sem_ch3.adb:16970|
| Error detected at example.ads:3:9 [test.adb:16:4]                        |
| Compiling test.adb                                                       |
| Please submit a bug report; see https://gcc.gnu.org/bugs/ .              |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact command that you entered.                              |
| Also include sources listed below.                                       |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

test.adb
example.ads

compilation abandoned
gnatmake: "test.adb" compilation error

Reproducer (to be gnat chopped) attached.

             reply	other threads:[~2023-11-30 12:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-30 12:27 simon at pushface dot org [this message]
2023-11-30 13:57 ` [Bug ada/112781] " rguenth at gcc dot gnu.org
2023-12-04 17:24 ` [Bug ada/112781] [13/14 " ebotcazou at gcc dot gnu.org
2023-12-05  0:51 ` ebotcazou at gcc dot gnu.org
2023-12-05 11:39 ` [Bug ada/112781] [13/14 regression] internal error on function call returning extension of limited interface ebotcazou at gcc dot gnu.org
2024-01-09  9:49 ` cvs-commit at gcc dot gnu.org
2024-01-09  9:50 ` cvs-commit at gcc dot gnu.org
2024-01-09 10:07 ` cvs-commit at gcc dot gnu.org
2024-01-09 10:14 ` cvs-commit at gcc dot gnu.org
2024-01-09 10:14 ` ebotcazou at gcc dot gnu.org

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-112781-4@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: link
Be 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).