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

--- Comment #1 from Jesper Quorning <jesper.quorning at gmail dot com> ---
Hi,ยจ

Reproducer (not legal Ada program) build with:

$ gnatmake -gnat2022 -gnatec=dd.adc day_10.adb

dd.adc is an empty_file. Could not add as attachment.

Removing Ada.Strings.Fixed or Ada.Text_IO - which are not used by the
reproducer - then then bug box disappears.

Output:
+===========================GNAT BUG DETECTED==============================+
| 15.2.0 (x86_64-pc-linux-gnu) Storage_Error stack overflow or erroneous memory
access|
| Error detected at day_10.adb:92:45                                       |
| Compiling day_10.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).

day_10.adb

compilation abandoned
gnatmake: "day_10.adb" compilation error


Note:
The -gnatec option is added by GPRbuild which is used by Alire. The problem is
based on a real-world problem (Advent of Code) :-)


Thanks

Reply via email to