https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64986
--- Comment #15 from Mikael Morin <mikael at gcc dot gnu.org> --- Author: mikael Date: Fri Jul 24 14:44:59 2015 New Revision: 226162 URL: https://gcc.gnu.org/viewcvs?rev=226162&root=gcc&view=rev Log: Fix gfortran.dg/class_to_type_4.f90 deallocation code misordering failure PR fortran/64986 gcc/fortran/ * trans-expr.c (gfc_trans_assignment_1): Put component deallocation code at the beginning of the block. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-expr.c