2016-06-01 Paul Thomas <pault@gcc.gnu.org>
commit7d7125df8c9a89625477dcaf120a2f8c77e9d4dd
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Jun 2016 14:30:00 +0000 (1 14:30 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Jun 2016 14:30:00 +0000 (1 14:30 +0000)
treef09700eb58e6a8b3d0e9f95544d3f416715aad97
parent6ab9cde46cb0bb5aab3fea0a90b28ea7468cce30
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236996 138bc75d-0d04-0410-961f-82ee72b054a4
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]