re PR fortran/40158 (Misleading error message for passing a scalar to an array)
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 28 Jun 2010 17:16:06 +0000 (17:16 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 28 Jun 2010 17:16:06 +0000 (17:16 +0000)
commita516520c2b74a6ec461f6b30c22b5edd996a4a8b
tree89b5727b5890b0456c8e2256d6bc91ea74d41668
parentbb8e5dcaa4c07a9aece8b608242d0c0b8d061eba
re PR fortran/40158 (Misleading error message for passing a scalar to an array)

2010-06-28  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40158
* interface.c (argument_rank_mismatch): New function.
(compare_parameter): Call new function instead of generating
the error directly.

2010-06-28  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40158
* gfortran.dg/actual_rank_check_1.f90: New test.

From-SVN: r161504
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/actual_rank_check_1.f90 [new file with mode: 0644]