re PR fortran/89601 ([PDT] ICE: Segmentation fault (in resolve_component))
authorJanus Weil <janus@gcc.gnu.org>
Wed, 13 Mar 2019 19:52:23 +0000 (20:52 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Wed, 13 Mar 2019 19:52:23 +0000 (20:52 +0100)
commit84083a711ee6b84f42a6d33c45784d660cf4f514
treeeb0549546cb336b5c75457cd64c13649bebc9a5a
parentcbfa3ec327c44491ec9c141c6476ba1d6df639e9
re PR fortran/89601 ([PDT] ICE: Segmentation fault (in resolve_component))

fix PR 89601

2019-03-13  Janus Weil  <janus@gcc.gnu.org>

PR fortran/89601
* decl.c (gfc_match_formal_arglist): Reject empty type parameter lists.
(gfc_match_derived_decl): Mark as PDT only if type parameter list was
matched successfully.

2019-03-13  Janus Weil  <janus@gcc.gnu.org>

PR fortran/89601
* gfortran.dg/pdt_16.f03: Modified to avoid follow-up errors.
* gfortran.dg/pdt_30.f90: New test case.

From-SVN: r269658
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pdt_16.f03
gcc/testsuite/gfortran.dg/pdt_30.f90 [new file with mode: 0644]