re PR fortran/71156 (PURE interface/definition inconsistency: accepts invalid, reject...
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 1 Jun 2016 14:30:00 +0000 (14:30 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 1 Jun 2016 14:30:00 +0000 (14:30 +0000)
commit6442a6f43b4525a08526f9e55419f567a1af776c
treef09700eb58e6a8b3d0e9f95544d3f416715aad97
parentab62397a1b51a925abf062999a96556241dc3478
re PR fortran/71156 (PURE interface/definition inconsistency: accepts invalid, rejects valid)

2016-06-01  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/71156
* decl.c (copy_prefix): Add checks that the module procedure
declaration prefixes are compliant with the interface. Invert
order of existing elemental and pure checks.
* resolve.c (resolve_fl_procedure): Invert order of elemental
and pure errors.

2016-06-01  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/71156
* gfortran.dg/submodule_14.f08: Add missing recursive prefix
to the module procedure declaration.
* gfortran.dg/submodule_16.f08: New test.

From-SVN: r236996
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/submodule_14.f08
gcc/testsuite/gfortran.dg/submodule_16.f08 [new file with mode: 0644]