blob: 598e06281bf7ae92ee108eec724709d572339617 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
! { dg-do compile }
! Test fix for F95 part of PR39800, in which the host association of the type 't1'
! generated an error.
!
! Reported to clf by Alexei Matveev <Alexei Matveev@gmail.com> and reported by
! Tobias Burnus <burnus@gcc.gnu.org>
!
module m
implicit none
private
type :: t1
integer :: i
end type
type :: t2
type(t1) :: j
end type
contains
subroutine sub()
implicit none
type :: t3
type(t1) :: j
end type
end subroutine
end module
|