public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* [Bug fortran/82173] [meta-bug] Parameterized derived type errors
@ 2017-09-17 18:29 Paul Richard Thomas
  0 siblings, 0 replies; only message in thread
From: Paul Richard Thomas @ 2017-09-17 18:29 UTC (permalink / raw)
  To: fortran, Bader, Reinhold, Damian Rouson

Dear All,

Reinhold Bader has been feeding me with PDT bugs, most of which are
now fixed in this commit:

Sending        gcc/fortran/ChangeLog
Sending        gcc/fortran/decl.c
Sending        gcc/fortran/primary.c
Sending        gcc/fortran/resolve.c
Sending        gcc/testsuite/ChangeLog
Adding         gcc/testsuite/gfortran.dg/associate_25.f90
Sending        gcc/testsuite/gfortran.dg/associate_9.f03
Sending        gcc/testsuite/gfortran.dg/pdt_1.f03
Adding         gcc/testsuite/gfortran.dg/pdt_11.f03
Adding         gcc/testsuite/gfortran.dg/pdt_12.f03
Sending        gcc/testsuite/gfortran.dg/pdt_2.f03
Sending        gcc/testsuite/gfortran.dg/pdt_3.f03
Sending        gcc/testsuite/gfortran.dg/pdt_4.f03
Transmitting file data .............done
Committing transaction...
Committed revision 252894.

Please note that it fixes a rather major problem in ASSOCIATE. I will
go through the PRs and see if others are now fixed.

Cheers

Paul

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

    PR fortran/82173
    * decl.c (gfc_get_pdt_instance): Use the component initializer
    expression for the default, rather than the parameter value.
    * resolve.c (resolve_pdt): New function.
    (resolve_symbol): Call it. Remove false error, prohibiting
    deferred type parameters for dummy arguments.

    PR fortran/60483
    * primary.c (gfc_match_varspec): If the type of an associate
    name is unknown and yet there is a match, try resolving the
    target expression and using its type.

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

    PR fortran/82173
    * gfortran.dg/pdt_1.f03 : Eliminate spurious error checks.
    * gfortran.dg/pdt_2.f03 : The same.
    * gfortran.dg/pdt_3.f03 : The same.
    * gfortran.dg/pdt_4.f03 : Add 'modtype' and two new errors in
    module 'bad_vars'. Add error concerning assumed parameters and
    save attribute.
    * gfortran.dg/pdt_11.f03 : New test.

    PR fortran/60483
    * gfortran.dg/associate_9.f90 : Remove XFAIL and change to run.
    * gfortran.dg/associate_25.f90 : New test.
    * gfortran.dg/pdt_12.f03 : New test.

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

only message in thread, other threads:[~2017-09-17 18:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-17 18:29 [Bug fortran/82173] [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).