https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125427
--- Comment #3 from Mikael Morin <mikael at gcc dot gnu.org> --- (In reply to Thomas Koenig from comment #2) > (In reply to Jerry DeLisle from comment #1) > > Here is a draft patch. It appears to fix pr125428 as well. > > Just wondering... is there a reason why gfc_evaluate_now will not work? > It would seem simpler. The patch is actually using gfc_evaluate_now. What makes it look complex is the addition of a simplified copy of gfc_add_finalizer_call.
