PR c/29467
[official-gcc.git] / gcc / testsuite / gfortran.dg / unlimited_polymorphic_15.f90
blob1dfebdce3d5aa6ad6734b1ef39d73c43c231ea94
1 ! { dg-do compile }
3 ! PR 59493: [OOP] ICE: Segfault on Class(*) pointer association
5 ! Contributed by Hossein Talebi <talebi.hossein@gmail.com>
7 implicit none
9 type ty_mytype1
10 end type
12 class(ty_mytype1), allocatable, target:: cla1
13 class(*), pointer :: ptr
15 ptr => cla1
17 end