Hello,
On Mon, 1 Dec 2003 10:19:14 +0100, Drew McCormack
<[log in to unmask]> wrote:
>Are you allowed to have spaces in common block names?
You'll have to say whether the code is fixed format or free format.
Blanks can go anywhere in fixed format (well, almost), but must
not occur within a token in free format. There's a list of places
where blanks can go when the token being split is two English words
(see 3.3.1, page 25 of the standard).
> I have a program
>which compiles with most compilers, and includes common block names
>with spaces.
Are you using a switch or filename extension causing the compilers
to assume fixed format?
> The same program cannot be compiled by g95.
Are you using a switch or filename extension causing g95
to assume free format?
> I am just
>wondering whether g95 is right on this, or the other compilers.
Switches or filename extensions are quite beyond the standard.
>Drew McCormack
>
>PS. I didn't write the code in question. Whether legal Fortran or not,
>I abhor the idea that such an obscure construct has been used.
<VBG>
Nobody's blaming you!
</VBG>
--
Cheers!
Dan Nagle
Purple Sage Computing Solutions, Inc.
|