[Bug fortran/34657] program-unit MY_SUB imports symbol MY_SUB
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 17 15:24:00 GMT 2011
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).
More information about the Gcc-bugs
mailing list