https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64230
--- Comment #5 from janus at gcc dot gnu.org --- Author: janus Date: Mon Jan 26 18:53:42 2015 New Revision: 220130 URL: https://gcc.gnu.org/viewcvs?rev=220130&root=gcc&view=rev Log: 2015-01-26 Janus Weil <ja...@gcc.gnu.org> Backport from mainline PR fortran/64230 * class.c (finalize_component): New argument 'sub_ns'. Insert code to check if 'expr' is associated. (generate_finalization_wrapper): Rename 'ptr' symbols to 'ptr1' and 'ptr2'. Pass 'sub_ns' to finalize_component. 2015-01-26 Janus Weil <ja...@gcc.gnu.org> Backport from mainline PR fortran/64230 * gfortran.dg/class_allocate_18.f90: New. Added: branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/class_allocate_18.f90 Modified: branches/gcc-4_9-branch/gcc/fortran/ChangeLog branches/gcc-4_9-branch/gcc/fortran/class.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog