Debian Codegraph @

gcc/testsuite/gfortran.dg/pr95587.f90

raw
1 ! { dg-do compile }
2 ! PR fortran/95587 - ICE in gfc_target_encode_expr, at fortran/target-memory.c:362
3
4 program p
5 type t
6 end type t
7 class(*), allocatable :: x, y
8 class(t), allocatable :: u, v
9 class(t), pointer :: c, d
10 equivalence (x, y) ! { dg-error "conflicts with ALLOCATABLE" }
11 equivalence (u, v) ! { dg-error "conflicts with ALLOCATABLE" }
12 equivalence (c, d) ! { dg-error "conflicts with POINTER" }
13 end