Debian Codegraph @

gcc/testsuite/gfortran.dg/pr95881.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=lib" }
3 ! PR fortran/95881 - ICE in resolve_symbol, at fortran/resolve.c:15175
4
5 program p
6 type t
7 real, allocatable :: a[:]
8 end type t
9 class(t) :: x ! { dg-error "must be dummy, allocatable or pointer" }
10 allocate (x%a[*])
11 end