From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 04870386F432; Sat, 13 Jun 2020 13:42:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 04870386F432 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592055730; bh=m6ycP9Z4YdKAZzq9PXAZBc/BJdVmqRt6d127AxHJeYE=; h=From:To:Subject:Date:From; b=WN/eTAIzZbbq5T2p4PHzeivqkyYH/Z7rgu6ovGTGZi4pRmdPEq1R1CROHpuRgbR1Q FYbgCmd3e/g+18BUFzwRZjo75mu2/PalvzL+2879gbRvxzp7hUJps86pvTSSilYGxe U/pechckC7FBLom9act27LAqVcTJIqaItPpoGfE0= From: "nicolas at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/95664] New: generic instantiation fails to detect abstract equality, builds with gcc-9 and fails to link with gcc-10 Date: Sat, 13 Jun 2020 13:42:09 +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: 10.1.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 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 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: Sat, 13 Jun 2020 13:42:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95664 Bug ID: 95664 Summary: generic instantiation fails to detect abstract equality, builds with gcc-9 and fails to link with gcc-10 Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: nicolas at debian dot org Target Milestone: --- Hello. A minimal reproducer follows. With gcc-9.3.0 (Debian build 13), all goes well, but gcc-10.1.0 (Debian build 3) fails to link: # /usr/bin/ld: ./pkg.o: in function `pkg__instantiation':=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 # pkg.ads:(.text+0x9): undefined reference to `pkg__Oeq'=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 If the source is valid Ada code (I am not quite sure), then gcc-9 is right and gcc-10 introduces a regression, else both versions should report an error instead of their current behaviou= r. cat > gen_proc.ads < gen_proc.adb < pkg.ads < main.adb <