Debian Codegraph @

gcc/testsuite/gfortran.dg/pointer_init_9.f90

raw
1 ! { dg-do compile }
2 ! PR 71237 - this used to ICE.
3 module data_mod
4 implicit none
5
6 type data_t
7 integer :: i
8 end type
9
10 type(data_t), pointer :: data
11 integer, pointer :: idata => data%i ! { dg-error "Pointer assignment target in initialization expression does not have the TARGET attribute" }
12
13 end module