I have the following problem: the statement
DATA (a(i),i= 1,2 )/ 1., 2. /
works well, whereas the statement
DATA (a(1:2) )/ 1., 2. /
fails with the comment:
*** Not enough items after '=' in implied-DO loop *** Compilation abandoned
Is this correct?
Best regards,
Klaus Lassmann
Winapp
Program Test53
Implicit None
Real , Dimension (10) :: a
! Integer :: i
! DATA (a(i),i= 1,2 )/ 1., 2. /
DATA (a(1:2) )/ 1., 2. /
write (*,*) a(1:2)
End Program Test53