re PR fortran/82173 ([meta-bug] Parameterized derived type errors)
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 13 Sep 2017 21:15:26 +0000 (21:15 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 13 Sep 2017 21:15:26 +0000 (21:15 +0000)
commit87f3a5cfb59347cd794c97c52b075d38dfc9ed48
tree83bb758f723dd0f1f3967bbb3550da9101f18693
parentb6509175b2602b0f7c4515b86e350e6cba42c603
re PR fortran/82173 ([meta-bug] Parameterized derived type errors)

2017-09-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82173
* decl.c (match_char_kind): If the kind expression is
parameterized, save it in saved_kind_expr and set kind = 0.
(gfc_get_pdt_instance): Resolve and simplify before emitting
error on expression kind. Insert a missing simplification after
insertion of kind expressions.

2017-09-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82173
* gfortran.dg/pdt_10.f03 : New test.

From-SVN: r252734
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pdt_10.f03 [new file with mode: 0644]