re PR fortran/71730 (ICE when character length specification uses an undefined variable)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 30 Jul 2016 16:19:14 +0000 (16:19 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 30 Jul 2016 16:19:14 +0000 (16:19 +0000)
commitfb42421ef060d7bc2e7f954ce12b0fdc83e57ee6
tree8e0a2eb509ebf7b16038640bfae617591083fb0e
parent12f549f4a4809411bbb7bd95c791eafa8861345c
re PR fortran/71730 (ICE when character length specification uses an undefined variable)

2016-07-30  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/71730
* decl.c (char_len_param_value): Check return value of
gfc_reduce_init_expr().

2016-07-30  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/71730
* gfortran.dg/pr71730.f90: New test.
* gfortran.dg/bounds_check_strlen_2.f90: Fix invalid code.
* gfortran.dg/array_constructor_27.f03: Update dg-error message.
* gfortran.dg/array_constructor_26.f03: Ditto.

From-SVN: r238904
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_26.f03
gcc/testsuite/gfortran.dg/array_constructor_27.f03
gcc/testsuite/gfortran.dg/bounds_check_strlen_2.f90
gcc/testsuite/gfortran.dg/pr71730.f90 [new file with mode: 0644]