[Bug fortran/45521] [F08] GENERIC resolution with ALLOCATABLE/POINTER and PROCEDURE
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 8 11:16:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45521
--- Comment #19 from janus at gcc dot gnu.org ---
There seem to be additional issues with ASSIGNMENT interfaces:
type :: t
end type
interface test ! accepted
procedure testAlloc
procedure testPtr
end interface
interface assignment(=) ! rejected as ambiguous
procedure testAlloc
procedure testPtr
end interface
contains
subroutine testAlloc(obj, val)
type(t), allocatable, intent(out) :: obj
integer, intent(in) :: val
end subroutine
subroutine testPtr(obj, val)
type(t), pointer, intent(out) :: obj
integer, intent(in) :: val
end subroutine
end
Error: Ambiguous interfaces in intrinsic assignment operator for ‘testalloc’ at
(1) and ‘testptr’ at (2)
More information about the Gcc-bugs
mailing list