[Bug fortran/33897] Incorrect host association in module
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 27 13:31:00 GMT 2007
------- Comment #11 from burnus at gcc dot gnu dot org 2007-10-27 13:31 -------
To recap (correct me, if I'm wrong):
The program in comment 0 (original bug description) is valid Fortran, but the
"setbd" is an external function which needs to be provided at link time. It is
not the module function as "integer :: setbd" causes "setbd" to be an external
function with an implicit interface. -> wrong-code bug as gfortran uses the
module function. (see also program in comment 4.)
The first program of comment 1: I think this is valid Fortran code; what
puzzles me is that gfortran rejects it with "Global name 'setbd' is already
being used as a FUNCTION". I think these are complete different name spaces
with the function names __ksbin1_aux_mod_MOD_setbd and setbd_: One being part
of a module and the other not. The same for the second program of comment 1. ->
rejects-valid.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33897
More information about the Gcc-bugs
mailing list