I have a module in which the following kind of thing appears:
MODULE a
CONTAINS
SUBROUTINE b(...)
call c(func,...)
call func(...) ! Flagged as error
END SUBROUTINE b
SUBROUTINE c(f, ...)
call f(...)
END SUBROUTINE c
SUBROUTINE func(...)
END SUBROUTINE func
END MODULE a
Although everything is within the same module, so that the interface
to func is explicit, one compiler complains about the subroutine call
indicated above, saying that "This is not the name of a subroutine".
Another compiler accepts it.
Is there a bug in my code (and perhaps in the second compiler) or a bug
in the first compiler? If it's my code that's wrong, how do I fix it?
--
Anthony Stone http://www-stone.ch.cam.ac.uk/
University Chemical Laboratory, Email: [log in to unmask]
Lensfield Road, Phone: +44 1223 336375
Cambridge CB2 1EW Fax: +44 1223 336362
|