aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr95980.f90
blob: 7c8260a96e059e90e0aa5db68eb0bddccf3eb2a6 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! PR fortran/95980 - ICE in get_unique_type_string, at fortran/class.c:485

program p
  type t
  end type t
  class(t) :: x        ! { dg-error "must be dummy, allocatable or pointer" }
  select type (y => x)
  end select
end