re PR fortran/31292 (ICE with module procedure interface in a procedure body)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 10 Sep 2009 21:22:08 +0000 (21:22 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 10 Sep 2009 21:22:08 +0000 (21:22 +0000)
commit43dfd40c1d5934d5850dcfd2c9a1b9e856bf32a7
tree4b5e73eaa50717049042d4e38225bf9f848a766b
parent1382ae05e3d1f105433b8244e937aa7c395c6904
re PR fortran/31292 (ICE with module procedure interface in a procedure body)

2009-09-10  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/31292
* fortran/decl.c(gfc_match_modproc): Check that module procedures
from a module can USEd in module procedure statements in other
program units.  Update locus for better error message display.
Detect intrinsic procedures in module procedure statements.

2009-09-10  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/31292
* gfortran.dg/module_procedure_1.f90: New test.
* gfortran.dg/module_procedure_2.f90: Ditto.
* gfortran.dg/generic_14.f90: Move dg-error to new location.

From-SVN: r151616
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/generic_14.f90
gcc/testsuite/gfortran.dg/module_procedure_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/module_procedure_2.f90 [new file with mode: 0644]