gcc/testsuite/gfortran.dg/pr107681.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-fcoarray=lib" } |
| 3 | ! PR fortran/107681 - ICE in gfc_type_is_extensible |
| 4 | ! Contributed by G.Steinmetz |
| 5 | |
| 6 | program p |
| 7 | type t |
| 8 | integer, allocatable :: a |
| 9 | end type |
| 10 | class(t) :: x[*] ! { dg-error "must be dummy, allocatable or pointer" } |
| 11 | associate (y => x) ! { dg-error "Invalid array reference" } |
| 12 | end associate |
| 13 | end |