Consider the following code:
class(*), pointer :: ptr1 => null()
class(*), pointer :: ptr2 => null()
allocate(integer :: ptr1)
print*, extends_type_of(ptr1, ptr2)
end
Flang outputs F, but the expected outputs is T as the standard says about intrinsic EXTENDS_TYPE_OF
Result Value. If MOLD is unlimited polymorphic and is either a disassociated pointer or unallocated allocatable variable, the result is true;...