Debian Codegraph @

gcc/testsuite/gfortran.dg/pr91727.f90

raw
1 ! { dg-do compile }
2 ! Code contributed by Gerhard Steinmetz.
3 program p
4 type t
5 class(*), allocatable :: a
6 end type
7 type(t) :: x
8 allocate (x%a, source=[1]) ! { dg-error "have the same rank as" }
9 end