[Bug fortran/66409] Reporting ambiguous interface when overloading assignment with polymorphic array

jeff.science at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 7 13:55:24 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66409

--- Comment #2 from Jeff Hammond <jeff.science at gmail dot com> ---
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 impossible
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


More information about the Gcc-bugs mailing list