This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34657] program-unit MY_SUB imports symbol MY_SUB
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 17 Jul 2011 15:24:31 +0000
- Subject: [Bug fortran/34657] program-unit MY_SUB imports symbol MY_SUB
- Auto-submitted: auto-generated
- References: <bug-34657-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34657
--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-07-17 15:24:02 UTC ---
(In reply to comment #2)
The patch causes two "regressions".
The first one, in interface_3.f90, triggers because the error message
from this patch takes precedence over the "ambiguous" error message
before. This should be fine with changing the error message in the
test case.
The second one, in generic_17.f90, is simply an incorrect test case,
which is very much like the one from the test case.
For the test case for this PR, please also add a test case like
module test_mod
interface
subroutine my_sub (a)
real a
end subroutine
end interface
end module
subroutine my_sub (a)
use test_mod, gugu => my_sub
real a
print *, a
end subroutine
END
(which is OK, and which passes for your patch).