re PR fortran/29284 (ICE for optional subroutine argument)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 3 Oct 2006 20:13:03 +0000 (20:13 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 3 Oct 2006 20:13:03 +0000 (20:13 +0000)
commit5be382734db43285b6ce08aee4982c18cebf2cf6
treeff6592e326477dbf0ff17a5d2950e64c46cbeade
parentb7bf91917adec5526a5ffc2328a6402494d9e8ee
re PR fortran/29284 (ICE for optional subroutine argument)

2006-10-03  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29284
PR fortran/29321
PR fortran/29322
* trans-expr.c (gfc_conv_function_call): Check the expression
and the formal symbol are present when testing the actual
argument.

PR fortran/25091
PR fortran/25092
* resolve.c (resolve_entries): It is an error if the entries
of an array-valued function do not have the same shape.

2006-10-03  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29284
* gfortran.dg/optional_assumed_charlen_1.f90: New test.

PR fortran/29321
PR fortran/29322
* gfortran.dg/missing_optional_dummy_2.f90: New test.

PR fortran/25091
PR fortran/25092
* gfortran.dg/entry_array_specs_1.f90: New test.

From-SVN: r117413
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/entry_array_specs_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/missing_optional_dummy_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/optional_assumed_charlen_1.f90 [new file with mode: 0644]