From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 612E83858C2C; Wed, 2 Feb 2022 20:43:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 612E83858C2C From: "simon at pushface dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/104354] New: ICE with Partition_Elaboration_Policy (Sequential) Date: Wed, 02 Feb 2022 20:43:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simon at pushface dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2022 20:43:01 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104354 Bug ID: 104354 Summary: ICE with Partition_Elaboration_Policy (Sequential) Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: simon at pushface dot org Target Milestone: --- Created attachment 52333 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52333&action=3Dedit Demonstrator (needs RTS) The attached ravenscar-sfp-stm32f4.zip contains a version of the Alire gnat_arm_elf_11.2.1_9343d45f runtime, edited to build with GCC 12.0.1. The attached sem_ch8.zip contains demo.ad[bs] and enough RTS code from Cortex GNAT RTS at https://github.com/simonjwright/cortex-gnat-rts to allow compiling demo.adb, which uses Ada.Containers.Bounded_Vectors, to demonstrate the problem. The command $ gprbuild -c -u -f demo.adb --target=3Darm-eabi --RTS=3D/Users/simon/tmp/ravenscar-sfp-stm32f4 (note, the --RTS=3D switch will have to be changed) results in +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3DGNAT BUG DETECTED=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ | 12.0.1 20220128 (experimental) (arm-eabi) Program_Error sem_ch8.adb:57= 73 explicit raise| | Error detected at demo.adb:21:14 = | | Compiling /Users/simon/tmp/bugs/gcc12/sem_ch8/arm-eabi//demo.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. = | +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D+ This error does not occur if the line pragma Partition_Elaboration_Policy (Sequential); is removed from demo.ads (the compilation fails because of other missing components).=