https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72698
--- Comment #10 from vehre at gcc dot gnu.org --- Author: vehre Date: Thu Aug 11 07:57:58 2016 New Revision: 239353 URL: https://gcc.gnu.org/viewcvs?rev=239353&root=gcc&view=rev Log: gcc/testsuite/ChangeLog: 2016-08-11 Andre Vehreschild <ve...@gcc.gnu.org> Backport from trunk: PR fortran/72698 * gfortran.dg/allocate_with_source_20.f03: New test. gcc/fortran/ChangeLog: 2016-08-11 Andre Vehreschild <ve...@gcc.gnu.org> Backport from trunk: PR fortran/72698 * trans-stmt.c (gfc_trans_allocate): Prevent generating code for copy of zero sized string and with it an ICE. Added: branches/gcc-5-branch/gcc/testsuite/gfortran.dg/allocate_with_source_20.f03 Modified: branches/gcc-5-branch/gcc/fortran/ChangeLog branches/gcc-5-branch/gcc/fortran/trans-stmt.c branches/gcc-5-branch/gcc/testsuite/ChangeLog