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
PROGRAM Data2
IMPLICIT TYPE(DT)(V)
TYPE :: DT
INTEGER :: Id
PROCEDURE(), NOPASS, POINTER :: ProcPtr
END TYPE
DIMENSION V1(3)
DATA V1(1)%ProcPtr /NULL()/
DATA V1(1)%Id /4/
end
Flang currently issues error messages for both DATA statement.
error: Semantic errors in t.f
./t.f:8:14: error: Internal: no symbol found for 'procptr'
DATA V1(1)%ProcPtr /NULL()/
^^^^^^^
./t.f:9:14: error: Internal: no symbol found for 'id'
DATA V1(1)%Id /4/
^^
This seems incorrect.
If I change V1 to be explicitly typed, it compiles successfully, or
if I change V1 to be scalar, it compiles successfully.