[Numpy-discussion] f2py with allocatable arrays

Sturla Molden sturla at molden.no
Tue Jul 3 20:27:32 EDT 2012


Den 04.07.2012 01:59, skrev Sturla Molden:
> But neither was the case here. The allocatable was a dummy variable in 
> a subroutine's interface, declared with intent(out). That is an error 
> the compiler should trap, because it is doomed to segfault.

Ok, so the answer here seems to be:

In Fortran 90 is compiler dependent.
In Fortran 95 it is an error.
In extensions to Fortran 95 it is legal.
In Fortran 2003 and 2008 it is legal.


Sturla





More information about the NumPy-Discussion mailing list