c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_62.f90
blob39ee98dd3618d94e618d852a8c6c6d712c297793
1 ! { dg-do run }
2 ! { dg-options "-fcheck=recursion" }
4 ! PR 80361: [5/6/7 Regression] bogus recursive call to nonrecursive procedure with -fcheck=recursion
6 ! Contributed by Jürgen Reuter <juergen.reuter@desy.de>
8 program main_ut
10 implicit none
12 type :: prt_spec_expr_t
13 end type
15 type :: prt_expr_t
16 class(prt_spec_expr_t), allocatable :: x
17 end type
19 type, extends (prt_spec_expr_t) :: prt_spec_list_t
20 type(prt_expr_t) :: e
21 end type
23 class(prt_spec_list_t), allocatable :: y
25 allocate (y)
26 allocate (prt_spec_list_t :: y%e%x)
27 deallocate(y)
29 end program