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

--- Comment #4 from janus at gcc dot gnu.org ---
(In reply to Paul Thomas from comment #3)
> It seems that finalization has never occurred with any branch for this case,

I don't fully agree with this statement.

Apart from the fact that gfortran 8 with -O1 produces output like "cleanup:
check 1", it also seems that even trunk (in principle) calls the finalizer. At
least the output of -fdump-tree-original indicates that MAIN__ contains two
calls to '__final_module1_Class1', i.e. the finalization wrapper for the type
'class1', which in turn calls the actual finalizer routine.

Why an executable compiled with gfortran trunk does not show any of the output
from the final routine is not clear to me.

Reply via email to