https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109209

--- Comment #13 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #12)
> I bet that's due to the finalization
>   commit r13-6747-gd7caf313525a46f200d7f5db1ba893f853774aee
> but I have not verified.
> 
...snip...

See my reply above.

In trying to fix all the finalization issues, I found myself following 10.2.1.3
"Interpretation of intrinsic assignments" closely; in particular paragraph 13,
points (1) and (2) which define what to do with allocatable components.
Reverting the one line in my patch that effects this cures this problem and has
no effect on the finalization testcases.

I suggest that I do the reversion and that we worry about intrinsic assignment
of derived types another time, especially since the other brands compile the
code without complaint.

> 
> > Actually, the 'module subroutine' here needs to be just 'subroutine'.
> > gfortran accepts this, nagfor doesn't.
> 
> I filed PR 109218 for this issue.

Thanks, Tobias

Regards

Paul

Reply via email to