1! { dg-do compile }
2! { dg-options "-std=f95" }
3!
4! PR fortran/53111
5!
6! Contributed by Jacob Middag, reduced by Janus Weil.
7!
8
9module a
10  type :: my
11    real :: x
12  end type
13end module
14
15module b
16  use a
17end module
18
19program test
20  use a
21  use b
22end program
23