Debian Codegraph @

gcc/testsuite/gfortran.dg/pr86322_1.f90

raw
1 ! { dg-do compile }
2 program foo
3 implicit none
4 type a
5 integer i
6 end type a
7 type(a), target, save :: b
8 type(a), pointer :: c
9 data b%i /42/
10 data c%i /b%i/ ! { dg-error "is not rightmost part-ref" }
11 if (c%i == 42) c%i = 1 ! Unreachable
12 end program foo