blob: cb3e4c3ec2b7e6f389366334c060e136f324f4b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
! { dg-do compile }
! Test the fix for PR40402, in which it was not detected that X
! is not a constant and so the DATA statement did not have
! a constant value expression.
!
! Modified dg-error for PR41807
!
! Contributed by Philippe Marguinaud <philippe.marguinaud@meteo.fr>
!
TYPE POINT
REAL :: X
ENDTYPE
TYPE(POINT) :: P
DATA P / POINT(1.+X) / ! { dg-error "non-constant initialization" }
print *, p
END
|