1*6c1ac141SIvan Zhechev! RUN: %python %S/test_errors.py %s %flang_fc1 2a27d3852STim Keith 3a27d3852STim Keithmodule m1 4a27d3852STim Keith implicit none 5a27d3852STim Keith type t 6a27d3852STim Keith integer :: n 7a27d3852STim Keith end type 8a27d3852STim Keith type t2 96aa3591eSpeter klausler ! t and t2 must be resolved to types in m1, not components in t2 10a27d3852STim Keith type(t) :: t(10) = t(1) 11a27d3852STim Keith type(t) :: x = t(1) 12a27d3852STim Keith integer :: t2 13a27d3852STim Keith type(t2), pointer :: p 14a27d3852STim Keith end type 15a27d3852STim Keithend 16a27d3852STim Keith 17a27d3852STim Keithmodule m2 18a27d3852STim Keith type :: t(t) 19a27d3852STim Keith integer, kind :: t 20a27d3852STim Keith integer(t) :: n 21a27d3852STim Keith end type 22a27d3852STim Keith type :: t2(t) 23a27d3852STim Keith integer, kind :: t 24a27d3852STim Keith type(t(t)) :: x = t(t)(t) 25a27d3852STim Keith end type 26a27d3852STim Keithend 27