>> A rather simple patch found while testing the draft finalization patch.
>>
>> For a "class(...), allocatable, intent(out)" dummy argument, the actual
>> argument has to be deallocated. That worked for scalar polymorphic vars, but
>> not for polymorphic arrays.
>
>
> Actually, it turned out to be a bit more complicated: I forgot to test
> whether resetting the _vtab worked. Result (as to be expected): It didn't. I
> also found out that DEALLOCATE also didn't properly reset the _vtab. That's
> now fixed (and tested for) in the attached follow up patch.
>
> (Recall that the standard mandates that an unallocated polymorphic variable
> has the declared type.)
>
>
>> Build and regtested on x86-64-gnu-linux.
>> OK for the trunk?

Yes, the updated version looks good to me. Thanks for the patch.

Cheers,
Janus

Reply via email to