https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71807
--- Comment #6 from vehre at gcc dot gnu.org --- Author: vehre Date: Fri Jul 22 15:14:53 2016 New Revision: 238649 URL: https://gcc.gnu.org/viewcvs?rev=238649&root=gcc&view=rev Log: gcc/fortran/ChangeLog: 2016-07-22 Andre Vehreschild <ve...@gcc.gnu.org> Backported from trunk: PR fortran/71807 * trans-expr.c (gfc_trans_subcomponent_assign): Special casing when allocatable component is set to null() in initializer. gcc/testsuite/ChangeLog: 2016-07-22 Andre Vehreschild <ve...@gcc.gnu.org> Backported from trunk: PR fortran/71807 * gfortran.dg/null_9.f90: New test. Added: branches/gcc-6-branch/gcc/testsuite/gfortran.dg/null_9.f90 Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/trans-expr.c branches/gcc-6-branch/gcc/testsuite/ChangeLog