From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 96B7B3861856; Mon, 8 Jan 2024 08:38:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 96B7B3861856 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704703106; bh=fSJJ1PrC1MqV1UgyYkqyJfd1SBwl6jdPL+a7lM8jkk4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Xcayh48B/0umwh6nOvoqm0NtoC85u0fn3hYrYdErpLGZPM7rVmVcZtxEKCvZr9lbh QmqilOwXVBkWYdN8xcffq6RwwrU0h2Yep6vL33BnhKwfquYlurQ6n/PJGoiJQiOsO0 cHmRuxutXfiRSCE/tOWYudlIjsOddsLqMuaWSK04= From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/113195] [13/14 regression] internal error on anonymous access type equality Date: Mon, 08 Jan 2024 08:38:24 +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: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc cf_reconfirmed_on cc bug_status everconfirmed 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=3D113195 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|gnat bug box when comparing |[13/14 regression] internal |access to subtype with |error on anonymous access |access inside record |type equality Last reconfirmed| |2024-01-08 CC| |ebotcazou at gcc dot gnu.o= rg Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Eric Botcazou --- The record is actually irrelevant, this only comes from the designated type= s: package P is subtype I is Integer; A : access I; Acc : access Integer; function F return Boolean is (A =3D Acc); end P; eric@fomalhaut:~/build/gcc/native> ~/install/gcc/bin/gcc -c p.ads=20 +=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+ | 14.0.0 20240108 (experimental) [master r14-6995-g4d31d660620] (x86_64-suse-linux) GCC error:| | in build_binary_op, at ada/gcc-interface/utils2.cc:1147 | | Error detected at p.ads:7:38=20 This worked up to GCC 12.=