(Hello, Anthony)
On Fri, Feb 21, 2003 at 11:51:09AM +0000, Anthony Stone wrote:
> I have a module in which the following kind of thing appears:
[snip code]
> 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?
According to the F95 standard: section 12.3.2.2
"If an external procedure name or a dummy procedure name is used as an actual
argument, its interface shall be explicit or it shall be explicitly declared
to have the EXTERNAL attribute."
Which implies that the first compiler is wrong, and your code correct.
Does the first compiler work if you declare func external within subroutine c?
Toby White
--
Dr. Toby White; Unified Model System Analyst.
Met Office, London Road, Bracknell, Berks. RG12 2SZ. United Kingdom
tel: +44 (0)1344 856123
email: [log in to unmask]
|