2017-09-17 Paul Thomas <pault@gcc.gnu.org>
commitdba5ed0deba7aaa788d221e04aadc2fc2efa54d1
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 17 Sep 2017 18:24:37 +0000 (17 18:24 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 17 Sep 2017 18:24:37 +0000 (17 18:24 +0000)
tree958630e32be5d6d40ebd26e96c747264a7f7378f
parent61cfebc8aabe6bd1c2b045982943f5758ed81b8b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@252894 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/primary.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/associate_25.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/associate_9.f03
gcc/testsuite/gfortran.dg/pdt_1.f03
gcc/testsuite/gfortran.dg/pdt_11.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pdt_12.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pdt_2.f03
gcc/testsuite/gfortran.dg/pdt_3.f03
gcc/testsuite/gfortran.dg/pdt_4.f03