re PR fortran/33343 (ICE (segfault) on invalid code with wrongly shaped arguments...
authorTobias Burnus <burnus@net-b.de>
Thu, 13 Sep 2007 18:08:04 +0000 (20:08 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Thu, 13 Sep 2007 18:08:04 +0000 (20:08 +0200)
commit3c7b91d3dcaf577588205ee810fbbdb91e64125f
treeb9179f5461f752d81a6f49fc2cb48a258d0aa68b
parent10a6db6ef3704c55bebf354218fcd9166800f543
re PR fortran/33343 (ICE (segfault) on invalid code with wrongly shaped arguments to elemental procedures)

2007-09-13  Tobias Burnus  <burnus@net-b.de>

PR fortran/33343
* expr.c (gfc_check_conformance): Print ranks in the error message.
* resolve.c (resolve_elemental_actual): Check also conformance of
the actual arguments for elemental functions.

2007-09-13  Tobias Burnus  <burnus@net-b.de>

PR fortran/33343
* gfortran.dg/elemental_args_check_1.f90: New.
* gfortran.dg/assumed_size_refs_1.f90: Update error message.
* gfortran.dg/elemental_subroutine_4.f90: Ditto.

From-SVN: r128473
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/assumed_size_refs_1.f90
gcc/testsuite/gfortran.dg/elemental_args_check_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/elemental_subroutine_4.f90