From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EBFDC3858D28; Sun, 12 Nov 2023 21:02:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBFDC3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699822931; bh=BvJZ+xb2dnE4czenZZF2z3PgRMLrzdZCs477z+9TAJo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TLIv0mFFGFH2qNHEvsQIfYOWJpejSEVIaFaSejQLbc2kUipK542pu6INQNxi+fGsp j6NaG0jk+9zw5nZ2PPIRE7hxwp4228jKmzBimyo/R6b/bda1JWlMmLqKyozeY+bqdO B+hLumn1c85XKclZzC2ECEc+6hzk1rQzunc+zQmM= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/104819] Reject NULL without MOLD as actual to an assumed-rank dummy Date: Sun, 12 Nov 2023 21:02:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf 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: attachments.created 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=3D104819 --- Comment #5 from anlauf at gcc dot gnu.org --- Created attachment 56563 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56563&action=3Dedit Partial testsuite fixes This patch contains obvious fixes to 3 testcases, except for assumed_rank_9.f90, which is more severe, as it violates ! F2018:15.5.2.5 Allocatable and pointer dummy variables ! ! The actual argument shall be polymorphic if and only if the associated ! dummy argument is polymorphic, and either both the actual and dummy ! arguments shall be unlimited polymorphic, or the declared type of the ! actual argument shall be the same as the declared type of the dummy ! argument. ! ! F2023:15.5.2.6 has the same text which is detected (mostly) by NAG and Intel. We need to detect and diagnose violations of the above.=