re PR fortran/67805 (ICE on array constructor with wrong character specification)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 24 Oct 2015 16:20:26 +0000 (16:20 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 24 Oct 2015 16:20:26 +0000 (16:20 +0000)
commit8d48826b99b81b7ed96c5db08ec8334a2b0c6557
treefc9895b536072c30abae69ea95b29645078ed28c
parentae1158c42534a9becfb51585b9b69df8d0d13a10
re PR fortran/67805 (ICE on array constructor with wrong character specification)

2015-10-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/67805
* array.c (gfc_match_array_constructor): Check for error from type
spec matching.
* decl.c (char_len_param_value): Check for valid of charlen parameter.
Reap dead code dating to 2008.
match.c (gfc_match_type_spec): Special case the keyword use in REAL.

2015-10-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/67805
* gfortran.dg/pr67805.f90: New testcase.
* gfortran.dg/array_constructor_26.f03: Update testcase.
* gfortran.dg/array_constructor_27.f03: Ditto.
* gfortran.dg/char_type_len_2.f90: Ditto.
* gfortran.dg/pr67802.f90: Ditto.
* gfortran.dg/used_before_typed_3.f90: Ditto.

From-SVN: r229287
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/decl.c
gcc/fortran/match.c
gcc/testsuite/gfortran.dg/array_constructor_26.f03
gcc/testsuite/gfortran.dg/array_constructor_27.f03
gcc/testsuite/gfortran.dg/char_type_len_2.f90
gcc/testsuite/gfortran.dg/large_real_kind_3.F90
gcc/testsuite/gfortran.dg/pr67802.f90
gcc/testsuite/gfortran.dg/pr67805.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/used_before_typed_3.f90