public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch, fortran] PR82173 [meta-bug] Parameterized derived type errors
@ 2017-09-13 21:19 Paul Richard Thomas
  0 siblings, 0 replies; only message in thread
From: Paul Richard Thomas @ 2017-09-13 21:19 UTC (permalink / raw)
  To: fortran

Committed as 'obvious'. Thanks to fortranFan on clf. It fixes a rather
mysterious fault that I already knew about - intrinsics in the
paraneter expressions were not being accepted. I forgot to resolve the
expressions.

Paul

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82173

--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Wed Sep 13 21:15:26 2017
New Revision: 252734

URL: https://gcc.gnu.org/viewcvs?rev=252734&root=gcc&view=rev
Log:
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.

Added:
    trunk/gcc/testsuite/gfortran.dg/pdt_10.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/decl.c
    trunk/gcc/testsuite/ChangeLog

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-13 21:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-13 21:19 [Patch, fortran] PR82173 [meta-bug] Parameterized derived type errors Paul Richard Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).