[Patch, Fortran] PR33897 - Incorrect host association in modules
Tobias Burnus
burnus@net-b.de
Sun Oct 28 19:06:00 GMT 2007
:ADDPATCH fortran:
As promissed: The second part of the patch Paul sent me this morning.
Assume "setbd" is a host- or module-associated function (which returns
an integer); then
subroutine foo
print *, setbd()
calls that procedure. However,
subroutine foo
integer :: setbd
print *, setbd()
is not the host-/module-associated procedure but an external procedure
"setbd_".
Without the patch, gfortran (wrongly) called the associated procedure
also in the latter case.
The other problem is that "ENTRY foo" always ended up in the global name
space, even if it was only a module procedure.
Build and regression tested on x86-64-linux.
OK for the trunk?
Tobias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: scope.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071028/ef16db41/attachment.ksh>
More information about the Fortran
mailing list