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

            Bug ID: 112524
           Summary: gnat crashes when initializing an array to a size
                    determined by a vector's length
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: devotus at yahoo dot com
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

Created attachment 56580
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56580&action=edit
minimal (?) source code that reproduces the bug

I get this, when I should get either an error (I think) or a successful compile
(I don't think, but using what I think is the correct syntax provokes a
compiler error).

```
gcc -c test_boom.adb
+===========================GNAT BUG DETECTED==============================+
| 13.2.1 20231011 (Red Hat 13.2.1-4) (x86_64-redhat-linux) Program_Error
sem_util.adb:7351 explicit raise|
| Error detected at test_boom.adb:17:28                                    |
| Compiling test_boom.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_boom.adb

compilation abandoned
gnatmake: "test_boom.adb" compilation error
```

Reply via email to