]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/interface.cc
re PR fortran/41733 (Proc-pointer conformance checks: Elemental-proc-ptr => non-eleme...
authorJanus Weil <janus@gcc.gnu.org>
Thu, 22 Sep 2011 09:32:11 +0000 (11:32 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Thu, 22 Sep 2011 09:32:11 +0000 (11:32 +0200)
commit58c1ae3667e753a492bfa224ff9194b9e2ae01ff
tree422fdb8c37217bfc8598a7e3f79ac6671571df52
parent29ed4920e8f131a9c315be88ab1a9dcd9c5ccc59
re PR fortran/41733 (Proc-pointer conformance checks: Elemental-proc-ptr => non-elemental-proc)

2011-09-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41733
* expr.c (gfc_check_pointer_assign): Check for nonintrinsic elemental
procedures.
* interface.c (gfc_compare_interfaces): Rename 'intent_flag'. Check
for PURE and ELEMENTAL attributes.
(compare_actual_formal): Remove pureness check here.

2011-09-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41733
* gfortran.dg/impure_actual_1.f90: Modified error message.
* gfortran.dg/proc_ptr_32.f90: New.
* gfortran.dg/proc_ptr_33.f90: New.

From-SVN: r179080
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/impure_actual_1.f90
gcc/testsuite/gfortran.dg/proc_ptr_32.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/proc_ptr_33.f90 [new file with mode: 0644]