From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CE9F13858CDB; Fri, 7 Oct 2022 18:30:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CE9F13858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665167439; bh=u2krxiqIN0kyFbxzI/ssF0dZVfGs0Eo62evxNBklWIg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AMi9+rZ6O17SsEIAQo3SGdtjTt0LNqrVHu6TFpMVB9rFCRItdaIB6/Q/F5ObyXiEj +Ipm/G+27BtKys2eKau9jaJPnYusgY7a6oNNMFbY6rX6v2rmlfyKi9D3cFaBxuUQEC fqOMMPa9y7HRaFhS7YO8mMDD9nCi5dfr+AxHf2PY= From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66409] Reporting ambiguous interface when overloading assignment with polymorphic array Date: Fri, 07 Oct 2022 18:30:39 +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: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66409 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #3 from kargl at gcc dot gnu.org --- (In reply to Jeff Hammond from comment #2) > Is this ever going to be fixed? I observe that a similar MCVE (below) is > compiled without complaint by Intel, Cray and NAG Fortran, so it's almost > certainly a lack of support for the standard in GCC. >=20 > As best I can, it is impossible to overload an interface when one of the > specific interfaces involves type(*), dimension(..), which makes it > impossible for me to implement MPI-3 F08 support. >=20 > My MCVE: >=20 > module f > implicit none >=20 > interface test > module procedure test_f08 > module procedure test_f08ts > end interface test >=20 > contains >=20 > subroutine test_f08(buf) > integer :: buf > end subroutine test_f08 >=20 > subroutine test_f08ts(buffer) > type(*), dimension(..), intent(inout) :: buffer > end subroutine test_f08ts >=20 > end module f program foo use f integer i call test(i) end program which specific subroutine is called based on TKR?=