re PR fortran/68218 (ALLOCATE with size given by a module function)
authorAndre Vehreschild <vehre@gcc.gnu.org>
Sun, 8 Nov 2015 17:37:42 +0000 (18:37 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Sun, 8 Nov 2015 17:37:42 +0000 (18:37 +0100)
commit3e4d188a5fe6df5994af7ee800614305afb7f8f7
tree0dd2be76bd06a73d4408b68fe1cf35636d5f4734
parent28bc117f586fbb15b887e6517e2b08330fec91c0
re PR fortran/68218 (ALLOCATE with size given by a module function)

gcc/fortran/ChangeLog:

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

PR fortran/68218
* trans-array.c (gfc_array_init_size): Add gfc_evaluate_now() when
array spec in allocate is a function call.

gcc/testsuite/ChangeLog:

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

PR fortran/68218
* gfortran.dg/allocate_with_arrayspec_1.f90: New test.

From-SVN: r229956
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_with_arrayspec_1.f90 [new file with mode: 0644]