Re: Symbols in function return specifiers
- From: Daniel Franke <nospam@xxxxxxxxxxx>
- Date: Tue, 19 Aug 2008 17:17:47 +0200
Daniel Kraft wrote:
fj wrote:
On 18 août, 19:01, nos...@xxxxxxxxxxxxx (Richard Maine) wrote:
Daniel Kraft <d...@xxxxxxxx> wrote:
I'm wondering whether the following is legal and if so, what the exact
meaning is:
CHARACTER(len=x) FUNCTION test (x)
IMPLICIT REAL(x)
INTEGER :: x
END FUNCTION test
Strange : I tested the example with 3 compilers (g95, ifort and
gfortran) :
g95 and gfortran compile the two cases without any warning, even with -
Wall. ifort compiles only when the type of the function is declared
after the declaration INTEGER :: x
I'm working on gfortran, so this is the reason why gfortran does not yet
complain... It will in the future, however, if I get this fixed
correctly :)
Daniel,
while you are at it, PR30239 seems to be related (or a special case of
yours).
Regards
Daniel
.
- References:
- Symbols in function return specifiers
- From: Daniel Kraft
- Re: Symbols in function return specifiers
- From: Richard Maine
- Re: Symbols in function return specifiers
- From: fj
- Re: Symbols in function return specifiers
- From: Daniel Kraft
- Symbols in function return specifiers
- Prev by Date: Re: Question about intel_VEC_memcpy
- Next by Date: Re: Surprise
- Previous by thread: Re: Symbols in function return specifiers
- Next by thread: Re: Symbols in function return specifiers
- Index(es):
Relevant Pages
|
|