Re: generic interface real function vs real
- From: "FX" <coudert@xxxxxxxxxxxxx>
- Date: Wed, 16 Apr 2008 22:32:08 +0000 (UTC)
It compiles and runs perfectly with GNU Fortran (GCC) 4.2.3, but ifort
(IFORT) 10.0 20070426 complains
I was going to say that this is an Intel bug, because it looked OK to me
and other compilers certainly did accept it (Sun, gfortran, IBM) but
Lahey also complains. So, I looked into the F2003 standard and I think
that's what the last example (INTERFACE BAD9) of C.11.2 says: it is
unambiguous, but still invalid, because: "the rules do not distinguish on
the basis of any properties other than type, kind type parameters, and
rank".
Anyone willing to confirm/infirm this?
PS: the root cause for that might be the will to have some simpler rules,
but it is a bit sad if the example showed by the poster is invalid
(moreover, these rules *are* complex anyway).
--
FX
.
- Follow-Ups:
- Re: generic interface real function vs real
- From: Gerry Ford
- Re: generic interface real function vs real
- From: Richard Maine
- Re: generic interface real function vs real
- References:
- generic interface real function vs real
- From: mabrowning
- generic interface real function vs real
- Prev by Date: Re: generic interface real function vs real
- Next by Date: Re: Can someone know the time for a oo implemented F2003 complier release under the window platform?
- Previous by thread: Re: generic interface real function vs real
- Next by thread: Re: generic interface real function vs real
- Index(es):
Relevant Pages
|