Transposed array as actual argument
Mikael Morin
mikael.morin@sfr.fr
Sun Aug 22 16:59:00 GMT 2010
Le 22.08.2010 18:16, Tobias Burnus a écrit :
>
> Mikael Morin wrote:
>> For example, I expect the following code to output four ones.
>> [...]
>> The output is four twos. Is that correct ?
>> If not I will open a PR for it.
>
> Other compilers give [1 1 1 1] - however, I belief that both results are
> correct as the the argument is not definable. If you use INTENT(INOUT)
> you will get the error message:
>
> Error: Actual argument at (1) must be definable as the dummy argument
> 'b' is INTENT = OUT/INOUT
>
> Tobias
>
Thanks for your answer.
Unfortunately it means more work for me :-(
More information about the Fortran
mailing list