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

            Bug ID: 122704
           Summary: ICE in program with iterator/constant_reference
           Product: gcc
           Version: 15.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jesper.quorning at gmail dot com
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

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

ICE in program with iterator/constant_reference. Compiler is 15.1.0 on Debian
12 with limited RAM. Can not reproduce on macOS with 14.2.0.

Compiled with 

$ gnatmake inc_hooks.adb


Bug box:

gcc -c inc_hooks.adb
+===========================GNAT BUG DETECTED==============================+
| 15.1.0 (x86_64-pc-linux-gnu) Storage_Error stack overflow or erroneous memory
access|
| Error detected at inc_hooks.adb:6:25                                     |
| Compiling inc_hooks.adb                                                  |

...

inc_hooks.adb
inc_hooks.ads
arrays.ads

compilation abandoned
gnatmake: "inc_hooks.adb" compilation error


Reproducer attached.

Thanks for excellent work and fast responce :-)
  • [Bug ada/122704] New: ICE in... jesper.quorning at gmail dot com via Gcc-bugs

Reply via email to