From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E73973858413; Tue, 14 Sep 2021 09:36:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E73973858413 From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/101970] [11/12 regression] ICE on 'Enum_Rep for the enum that filled its representation range Date: Tue, 14 Sep 2021 09:36: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: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.3 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 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: Tue, 14 Sep 2021 09:36:12 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101970 --- Comment #4 from CVS Commits --- The releases/gcc-11 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:40c0122a1c5c364346d2d1c96dce66aea2e5032c commit r11-8991-g40c0122a1c5c364346d2d1c96dce66aea2e5032c Author: Eric Botcazou Date: Tue Sep 14 11:33:05 2021 +0200 Fix PR ada/101970 This is a regression present on the mainline and 11 branch in the form = of an ICE for an enumeration type with a full signed representation for its s= ize. gcc/ada/ PR ada/101970 * exp_attr.adb (Expand_N_Attribute_Reference) : Use an unchecked conversion instead of a regular conversion in = the enumeration case and remove Conversion_OK flag in the integer c= ase. : Remove superfluous test. gcc/testsuite/ * gnat.dg/enum_rep2.adb: New test.=