c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr95881.f90
blob9f171764948a79f964e619190eb9802c891c5677
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=lib" }
3 ! PR fortran/95881 - ICE in resolve_symbol, at fortran/resolve.c:15175
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