re PR fortran/25098 (Variable as actual argument for procedure dummy argument allowed)
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. From-SVN: r114296
Showing
- gcc/fortran/ChangeLog 15 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/interface.c 21 additions, 1 deletiongcc/fortran/interface.c
- gcc/fortran/trans-intrinsic.c 28 additions, 24 deletionsgcc/fortran/trans-intrinsic.c
- gcc/testsuite/ChangeLog 11 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gfortran.dg/associated_2.f90 13 additions, 2 deletionsgcc/testsuite/gfortran.dg/associated_2.f90
- gcc/testsuite/gfortran.dg/dummy_procedure_1.f90 47 additions, 0 deletionsgcc/testsuite/gfortran.dg/dummy_procedure_1.f90
- gcc/testsuite/gfortran.dg/dummy_procedure_2.f90 33 additions, 0 deletionsgcc/testsuite/gfortran.dg/dummy_procedure_2.f90
Loading
Please register or sign in to comment