https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79344
--- Comment #8 from vehre at gcc dot gnu.org --- Author: vehre Date: Sun Feb 5 15:43:03 2017 New Revision: 245194 URL: https://gcc.gnu.org/viewcvs?rev=245194&root=gcc&view=rev Log: gcc/fortran/ChangeLog: 2017-02-05 Andre Vehreschild <[email protected]> PR fortran/79344 * trans-stmt.c (gfc_trans_allocate): Only deallocate the components of the temporary, when a new object was created for the temporary. Not when it is just an alias to an existing object. gcc/testsuite/ChangeLog: 2017-02-04 Andre Vehreschild <[email protected]> PR fortran/79344 * gfortran.dg/allocate_with_source_24.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/allocate_with_source_24.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-stmt.c trunk/gcc/testsuite/ChangeLog
