modula2: Simplify REAL/LONGREAL/SHORTREAL node creation.
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr95053_3.f90
blobeae3d8fc41e82e6bde72fa5d7d1ed88e1b67cd7f
1 ! { dg-do compile }
2 ! Related to PR 93499 - this used to ICE.
4 program p
5 type t(n)
6 integer, kind :: n
7 end type t
8 type u(n)
9 integer, len :: n
10 end type u
11 type(t((0)/0)) :: x ! { dg-error "does not simplify to an INTEGER" }
12 type(t((0.)/0)) :: y ! { dg-error "must be of INTEGER type" }
13 type(u(0/(0.))) :: z ! { dg-error "must be of INTEGER type" }
14 end