From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AAFD63858C41; Tue, 2 Jan 2024 04:07:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAFD63858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704168442; bh=Ns0szoONPw1+J7m1JapsIXIXyjLkmAZsLdektODzjVA=; h=From:To:Subject:Date:From; b=wWNM7A9nT2OX0PV5WSRK/eqlIl93qukswbUNhjgAu8jyLp5zqBhYkn93/tdjA42z/ R3qUpEgEcgpaFkTgeIqPzBaNacARwEoAxmAfmgz1FSAqsDuN9rqpNIwDEfpZVi5wwp EPQK+uv8YYAFGK5CwrangxHGDvM4cGVZDYSIUs00= From: "nicolas at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/113195] New: gnat bug box when comparing access to subtype with access inside record Date: Tue, 02 Jan 2024 04:07:17 +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: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nicolas at debian 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 cc target_milestone 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113195 Bug ID: 113195 Summary: gnat bug box when comparing access to subtype with access inside record Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: nicolas at debian dot org CC: dkm at gcc dot gnu.org Target Milestone: --- Hello. If the 'p.ads' file contains this: -- package P is subtype I is Integer; A : access I :=3D null; type Rec is record Acc : access Integer; end record; R : Rec :=3D (Acc =3D> null); B : Boolean :=3D A =3D R.Acc; end P; -- Then 'gnatmake p' triggers this bug box. x86_64-linux-gnu-gcc-13 -c p.ads +=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+ | 13.2.0 (x86_64-linux-gnu) GCC error: | | in build_binary_op, at ada/gcc-interface/utils2.cc:1142 | | Error detected at p.ads:10:23 | | Compiling p.ads | | 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+ I have found no shorter reproducer.=