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

            Bug ID: 113972
           Summary: ICE on container map for aggregate.
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: p.p11 at orange dot fr
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

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

With the following map for aggregate code:
            M := [for Key1 of Keys => Integer'Image (Key1)];

It is ok when checking but issues a bug box when compiling:
$ gcc -c -gnat2022 test_20240217_map_for_agg.adb 
+===========================GNAT BUG DETECTED==============================+
| 13.2.0 (x86_64-apple-darwin21.6.0) Program_Error sem_type.adb:811 explicit
raise|
| Error detected at test_20240217_map_for_agg.adb:38:9                     |
| Compiling test_20240217_map_for_agg.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).

2024/test_20240217_map_for_agg.adb

compilation abandoned

Reply via email to