annotate gcc/testsuite/gfortran.dg/ambiguous_reference_2.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 !
kono
parents:
diff changeset
3 ! PR 39930: Bogus error: ambiguous reference
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 module a1
kono
parents:
diff changeset
8 contains
kono
parents:
diff changeset
9 subroutine myRoutine
kono
parents:
diff changeset
10 end subroutine
kono
parents:
diff changeset
11 end module
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 module a2
kono
parents:
diff changeset
14 contains
kono
parents:
diff changeset
15 subroutine myRoutine
kono
parents:
diff changeset
16 end subroutine
kono
parents:
diff changeset
17 end module
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 module b
kono
parents:
diff changeset
20 contains
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 subroutine otherRoutine
kono
parents:
diff changeset
23 use a1
kono
parents:
diff changeset
24 use a2
kono
parents:
diff changeset
25 end subroutine
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 subroutine myRoutine
kono
parents:
diff changeset
28 end subroutine myRoutine ! this is not ambiguous !
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 end module