16 module subroutine sb1()
21 ! Error: use 'i' both for m's 'i' and 'j'
22 submodule(mod
) sub
! { dg-error "Symbol 'i' at .1. conflicts with the rename symbol" }
23 use m1
, only
: i
=> j
! { dg-error "Symbol 'i' at .1. conflicts with the rename symbol" }
29 module subroutine sb1()
34 ! Error: use 'i' both for m's 'i' and m2's 'k'
35 submodule(mod2
) sub2
! { dg-error "Symbol 'i' at .1. conflicts with the rename symbol" }
36 use m2
, only
: i
=> k
! { dg-error "Symbol 'i' at .1. conflicts with the rename symbol" }
43 module subroutine sb1()
48 ! Error: use 'i' both for m's 'i' and m2's 'i'
49 submodule(mod3
) sub3
! { dg-error "Symbol 'i' at .1. conflicts with the symbol" }
50 use m2
, only
: i
! { dg-error "Symbol 'i' at .1. conflicts with the symbol" }
55 use m
, only
: mm
=> i
, i
57 module subroutine sb1()
71 module subroutine sb1()
76 ! mm from both m2 and m
77 submodule(mod5
) sub5
! { dg-error "Symbol 'mm' at .1. conflicts with the rename symbol" }
78 use m2
, only
: mm
=> i
! { dg-error "Symbol 'mm' at .1. conflicts with the rename symbol" }