re PR fortran/91715 (ICE in resolve_fntype, at fortran/resolve.c:16884)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 11 Oct 2019 17:59:09 +0000 (17:59 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 11 Oct 2019 17:59:09 +0000 (17:59 +0000)
commit95040e7e207dc0a2024c2ed10b8b15de4b369ece
tree8f70733c486c7065e27036658477ec7d39e849f5
parent405e87e8259b6e70bdf31544bb0e5d147e6f301a
re PR fortran/91715 (ICE in resolve_fntype, at fortran/resolve.c:16884)

2019-10-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91715
* decl.c (gfc_match_prefix): If matching a type-spec returns an error,
it's an error so re-act correctly.

2019-10-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91715
* gfortran.dg/function_kinds_5.f90: Prune run-on error.
* gfortran.dg/pr85543.f90: Ditto.
* gfortran.dg/pr91715.f90: New test.

From-SVN: r276899
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/function_kinds_5.f90
gcc/testsuite/gfortran.dg/pr85543.f90
gcc/testsuite/gfortran.dg/pr91715.f90 [new file with mode: 0644]