https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72698
--- Comment #9 from vehre at gcc dot gnu.org --- Author: vehre Date: Thu Aug 11 07:46:33 2016 New Revision: 239352 URL: https://gcc.gnu.org/viewcvs?rev=239352&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-6-branch/gcc/testsuite/gfortran.dg/allocate_with_source_20.f03 Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/trans-stmt.c branches/gcc-6-branch/gcc/testsuite/ChangeLog