re PR fortran/71936 (ICE in wide_int_to_tree, at tree.c:1487)
authorAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 8 Aug 2016 09:58:21 +0000 (11:58 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 8 Aug 2016 09:58:21 +0000 (11:58 +0200)
commit7090cac9f7c9aabd4ad252e6d49b42bdcac85f67
tree2aecfc38f65dabcc6205d34a288024cf1c120249
parent64e56ab026b20babdf4ac0b07c20ab5b9c3e0b1e
re PR fortran/71936 (ICE in wide_int_to_tree, at tree.c:1487)

gcc/fortran/ChangeLog:

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

PR fortran/71936
* trans-array.c (gfc_array_allocate): When SOURCE= is a function
stick with the ref of the object to allocate.

gcc/testsuite/ChangeLog:

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

PR fortran/71936
* gfortran.dg/allocate_with_source_21.f03: New test.

From-SVN: r239237
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_with_source_21.f03 [new file with mode: 0644]