From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E7883385843E; Tue, 9 Jan 2024 12:27:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7883385843E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704803233; bh=+VDTcc84N/aFiJ2ZFTaz8LiqRbFIxxrGfyWPtYHOiZo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MGM/o6wru13ynwTspOu7xZ+P05zjQF+a9sJSqDg6yT29H8fanQXZAGxTrAhoD0ow9 iUdIQl66un3wZfXuH4TO7atN1HON+12vjdSfhjqXhX35kZ33xQd5SsVnPNeuH82J61 oFuoCHOghB3aZvRdS056DFbwwgwtoHir7jfZDqiw= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/104354] [12 regression] internal error with Partition_Elaboration_Policy (Sequential) Date: Tue, 09 Jan 2024 12:27:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104354 --- Comment #5 from GCC Commits --- The releases/gcc-12 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:5b17c2c6cbc34056ae878beed2351bf77a8f57a0 commit r12-10087-g5b17c2c6cbc34056ae878beed2351bf77a8f57a0 Author: Steve Baird Date: Wed Nov 16 09:28:22 2022 -0800 Fix nternal compiler error for Sequential Partition_Elaboration_Policy In some cases, compilation of a function with a limited class-wide resu= lt type could fail with an ICE if a Sequential Partition_Elaboration_Polic= y is specified. To prevent this, we really want that specifying a Sequential Partition_Elaboration_Policy to have the side effect of imposing a No_Task_Hierarchy restriction. But doing that in a straightforward way leads to problems with incorrectly accepting violations of H.6(6). So a new restriction, No_Task_Hierarchy_Implicit, is introduced. gcc/ada/ PR ada/104354 * libgnat/s-rident.ads: Define a new restriction, No_Task_Hierarchy_Implicit. This is like the No_Task_Hierarchy restriction, but with the difference that setting this restrict= ion does not mean the H.6(6) post-compilation check is satisified. * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call): If it = is known that the function result cannot have tasks, then pass in a null literal for the activation chain actual parameter. This avoids generating a reference to an entity that Build_Activation_Chain_Entity may have chosen not to generate a declaration for. * gnatbind.adb (List_Applicable_Restrictions): Do not list the No_Task_Hierarchy_Implicit restriction. * restrict.adb: Special treatment for the No_Task_Hierarchy_Implicit restriction in functions Get_Restriction_Id and Restriction_Active. The former is needed= to disallow the (unlikely) case that a user tries to explicitly reference the No_Task_Hierarchy_Implicit restriction. * sem_prag.adb (Analyze_Pragma): If a Sequential Partition_Elaboration_Policy is specified (and the No_Task_Hierarchy restriction is not already enabled), then ena= ble the No_Task_Hierarchy_Implicit restriction.=