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

--- Comment #8 from Mikael Morin <mikael at gcc dot gnu.org> ---
I can see three problems with gfc_assignment_finalizer_call.

The first two are those diagnosed in comment #5 (pre and post block dropped,
and finalizer called in the wrong place/context).  Paul's patch in comment #6
prevents them from appearing, but I think they remain latent.

The third one is that we evaluate the lhs a second time for finalization, which
can be problematic in case of side-effects.

Reply via email to