re PR fortran/72698 (ICE in lhd_incomplete_type_error, at langhooks.c:205)
authorAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 8 Aug 2016 09:49:37 +0000 (11:49 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 8 Aug 2016 09:49:37 +0000 (11:49 +0200)
commit64e56ab026b20babdf4ac0b07c20ab5b9c3e0b1e
tree7107616be3f158b50330ffd672fb7b3c5663b752
parent0476487d4916e62bf7e52d06501ef8837ba47cf8
re PR fortran/72698 (ICE in lhd_incomplete_type_error, at langhooks.c:205)

gcc/testsuite/ChangeLog:

2016-08-08  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/72698
* gfortran.dg/allocate_with_source_20.f03: New test.

gcc/fortran/ChangeLog:

2016-08-08  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/72698
* trans-stmt.c (gfc_trans_allocate): Prevent generating code for
copy of zero sized string and with it an ICE.

From-SVN: r239236
gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_with_source_20.f03 [new file with mode: 0644]