Debian Codegraph @

gcc/testsuite/gfortran.dg/pr87991.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-w" }
3 ! PR fortran/87991
4 program p
5 type t
6 character(:), pointer :: c
7 end type
8 type(t) :: x
9 allocate (character(3) :: x%c)
10 data x%c /'abc'/ ! { dg-error "has the pointer attribute" }
11 end