summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/array_constructor_35.f90
blob: fddd1e952b6653ad476d2290300e2edf43156af9 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
! PR42999  bogus error: Parameter 'i' at (1) has not been declared
! or is a variable, which does not reduce to a constant expression
 TYPE DD
  INTEGER :: I
 END TYPE DD
 TYPE(DD) :: X(2)=(/(DD(I),I=1,2)/)
 END