Debian Codegraph @

gcc/testsuite/gfortran.dg/pr93685_2.f90

raw
1 ! { dg-do compile }
2 ! PR93685 - ICE in gfc_constructor_append_expr, at fortran/constructor.c:135
3
4 program p
5 implicit none
6 type t
7 character :: a
8 end type t
9 type u
10 integer :: i
11 end type u
12 type(t) :: x
13 type(u) :: y
14 character, target :: c = 'c'
15 integer , target :: i = 10
16 data x%a /c/ ! { dg-error "non-constant initialization expression" }
17 data y%i /i/ ! { dg-error "non-constant initialization expression" }
18 end