Debian Codegraph @

gcc/testsuite/gfortran.dg/pr85798.f90

raw
1 ! { dg-do compile }
2 program p
3 type t
4 integer, allocatable :: a(:)
5 end type
6 type u
7 real x
8 type(t) y
9 end type
10 type(t) :: z
11 type(u) :: q
12 data z%a(1) / 789 / ! { dg-error "Allocatable component" }
13 data q%y%a(1) / 789 / ! { dg-error "Allocatable component" }
14 end