overloaded cant be distinguished by return values?
- From: berthold@xxxxxxxxxxxxx (Berthold Höllmann)
- Date: Wed, 30 May 2007 15:22:12 +0200
I am trying to distinguisch overloaded functions by their result value
but get an error message from ifort 9.1:
cat overload.f90 ; ifort overload.f90 -cmodule a
interface test
module procedure testa, testb
end interface test
contains
function testa() result(a)
integer :: a
a = 1
end function testa
function testb() result(b)
character(len=8) :: b
b = 'result'
end function testb
end module a
fortcom: Warning: overload.f90, line 14: The type/rank/keyword signature for this specific procedure matches another specific procedure that shares the same generic-name. [TESTB]
function testb() result(b)
-----------^
Is this correct behaviour or an error of ifort. pgf90/pgf95 version
7.0 does compile this example.
Kind regards
Berthold Höllmann
--
__ Address:
G / \ L Germanischer Lloyd
phone: +49-40-36149-7374 -+----+- Vorsetzen 35 P.O.Box 111606
fax : +49-40-36149-7320 \__/ D-20459 Hamburg D-20416 Hamburg
.
- Follow-Ups:
- Re: overloaded cant be distinguished by return values?
- From: James Giles
- Re: overloaded cant be distinguished by return values?
- From: Michael Metcalf
- Re: overloaded cant be distinguished by return values?
- Prev by Date: Re: strange arguments passing problem (from vba to fortran dll)
- Next by Date: Re: overloaded cant be distinguished by return values?
- Previous by thread: F77 & WIN XP
- Next by thread: Re: overloaded cant be distinguished by return values?
- Index(es):
Relevant Pages
|