You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MODULE M
TYPE :: DT
INTEGER :: ID
END TYPE
CONTAINS
FUNCTION ModDt(Arg)
TYPE(DT) :: Arg
CLASS(DT), POINTER :: ModDt
END FUNCTION
END MODULE
PROGRAM PtrAssignGen
USE M
IMPLICIT NONE
INTERFACE ModDt
MODULE PROCEDURE ModDt
END INTERFACE
PROCEDURE(ModDt), POINTER :: ProcPtr
END
Flang currently issues an error as
./t.f:21:5: error: A PROCEDURE statement is only allowed in a generic interface block
MODULE PROCEDURE ModDt
^^^^^^^^^^^^^^^^^^^^^^^
The code seems conforming to me. If I remove the generic name from the interface block, it compiles successfully.