SAVE and derived types

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Tue Mar 13 14:24:00 GMT 2007


Terry Frankcombe wrote:
> On Tue, 2007-03-13 at 14:57 +0100, Salvatore Filippone wrote:
> 
> <snip>
>> Module bar_mod
>>
>>   type foo_type
>>      integer, allocatable :: mv(:)
>>   end type foo_type
> 
> 
> Hang on, aren't allocatable arrays illegal in defined types?  Is this an
> extension?

You may want to check TR15581 or the F2003 standard.  It's not valid 
Fortran 95, but it's valid for all newer variants of the language :-)

I think Salvatore found a real bug.

- Tobi



More information about the Fortran mailing list