From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B68AE3870865; Sat, 13 Jun 2020 16:01:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B68AE3870865 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592064093; bh=9fecFLYUtVV16fyeb3y60W2Q3NlvoqwCQhZKI111EYA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JppvJ0uChvVhiDquTryl+PB6/pysS9tKNAItKQWQJD/EDPsgNx8A60pQkIHWPHq1B c80uNLyEjFsGkn/smfjuu5lkoKvvCkLUQMQJ6mCoCme/d7zpYojVbSmtzftsWaLo1E s7cNzMpgb3latIrtsTMPpSBoCLvubT89BHLpLujc= From: "ludovic@ludovic-brenta.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/95664] generic instantiation fails to detect abstract equality, builds with gcc-9 and fails to link with gcc-10 Date: Sat, 13 Jun 2020 16:01:33 +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: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ludovic@ludovic-brenta.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: cc 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: Sat, 13 Jun 2020 16:01:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95664 Ludovic Brenta changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ludovic@ludovic-brenta.org --- Comment #1 from Ludovic Brenta --- ARM 3.9.3(3/2): A subprogram declared by an abstract_subprogram_declaration or a formal_abstract_subprogram_declaration is an abstract subprogram. If it is a primitive subprogram of a tagged type, then the tagged type shall be abstract. so this does not explicitly forbid abstract subprograms that are primitive to an untagged type; however: 7 A call on an abstract subprogram shall be a dispatching call; nondispatching calls to an abstract subprogram are not allowed. this implicitly requires the formal type of the controlling operand to be tagged and the actual to be class-wide. Therefore I think gcc-9.3 and gcc-10.1 should both report an error; it shou= ld be illegal to declare "=3D" as an abstract primitive subprogram of the unta= gged type Element.=