From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1737439484BD; Fri, 7 Oct 2022 13:55:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1737439484BD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665150925; bh=W6YhBmkiAX91aH1RqTyRy+xG9u3ff+43lVZx2oJ0ZrY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=N3qMH2+Eto5goLiNbCTCl52JSlv7NovtqYoc7h7aqCsG5s804eur1xo7g40BOyQu0 rPMUyUDurqWeFp5ARfSudih/3F6FSMbbGCeqEkmpnyh6OnvBqqwK/nErkonSqkfcj+ AdI+V5On1KP624nw9QsToscO5J5+3hcyTUOQ7Y1k= From: "jeff.science at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66409] Reporting ambiguous interface when overloading assignment with polymorphic array Date: Fri, 07 Oct 2022 13:55:24 +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: jeff.science at gmail dot com 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: 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 --- Comment #2 from Jeff Hammond --- 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. As best I can, it is impossible to overload an interface when one of the specific interfaces involves type(*), dimension(..), which makes it impossi= ble for me to implement MPI-3 F08 support. My MCVE: module f implicit none interface test module procedure test_f08 module procedure test_f08ts end interface test contains subroutine test_f08(buf) integer :: buf end subroutine test_f08 subroutine test_f08ts(buffer) type(*), dimension(..), intent(inout) :: buffer end subroutine test_f08ts end module f=