nvptx, libgfortran: Switch out of "minimal" mode
[official-gcc.git] / gcc / testsuite / gfortran.dg / use_20.f90
blob86e750987bd101c3e73ccc323237c59d1997e56f
1 ! { dg-do compile }
3 ! PR fortran/51809
5 ! Contributed by Kacper Kowalik
7 module foo
8 implicit none
10 type foo_t
11 contains
12 procedure :: func_foo
13 end type foo_t
15 contains
17 subroutine func_foo(this)
18 implicit none
19 class(foo_t), intent(in) :: this
20 end subroutine func_foo
22 end module foo
24 module bar
25 use foo, only: foo_t
27 implicit none
29 type, extends(foo_t) :: bar_t
30 contains
31 procedure :: func_bar
32 end type bar_t
34 contains
36 subroutine func_bar(this)
37 use foo, only: foo_t ! <--- removing this line also fixes ICE
38 implicit none
39 class(bar_t), intent(in) :: this
40 end subroutine func_bar
42 end module bar
44 module merry_ICE
45 use foo, only: foo_t ! <------ change order to prevent ICE
46 use bar, only: bar_t ! <------ change order to prevent ICE
47 end module merry_ICE