Print

Print


Hello Fortraners,

At 16:09 28-06-02 -0500, Aleksandar wrote:
>Hello,
>
>Intel's compiler gives an error for the following function because it
>does not assign a return result:
>
>function test(x)
>     write(*,*) "error!"
>     stop
>end function test
>
>Is this kind of compiler behavior allowed? If yes, why should a silly
>compiler be allowed to play so smart (it should of course give a
>warning)...
>
>Thanks,
>Aleksandar


IMHO this behaviour is allowed. Not quite sure about standardconformingness.

Anyway, my compilers (Absoft, Salford) just give warnings.




Best regards,

\---

Jan van Oosterwijk
Netherlands
mailto:[log in to unmask]
http://huizen.dto.tudelft.nl/vanOosterwijk/