2006-06-01 Paul Thomas <pault@gcc.gnu.org>
commite815d37d0ff358d4678f1e157804e9a520407a77
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Jun 2006 04:35:38 +0000 (1 04:35 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Jun 2006 04:35:38 +0000 (1 04:35 +0000)
tree267121ad7ae5eb38b1baf53d34e58374d138a47e
parentee3081247a6b613c279ab98a53432516f525652b
2006-06-01  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25098
PR fortran/25147
* interface.c (compare_parameter): Return 1 if the actual arg
is external and the formal is a procedure.
(compare_actual_formal): If the actual argument is a variable
and the formal a procedure, this an error.  If a gsymbol exists
for a procedure of the same name, this is not yet resolved and
the error is cleared.

* trans-intrinsic.c (gfc_conv_associated): Make provision for
zero array length or zero string length contingent on presence
of target, for consistency with standard.

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

PR fortran/25098
* gfortran.dg/dummy_procedure_1.f90: New test.

PR fortran/25147
* gfortran.dg/dummy_procedure_2.f90: New test.

* gfortran.dg/associated_2.f90: Correct to make consistent with
standard.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114296 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/associated_2.f90
gcc/testsuite/gfortran.dg/dummy_procedure_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dummy_procedure_2.f90 [new file with mode: 0644]