Fortran: Fix ICE in argument_rank_mismatch [PR103287]
authorSandra Loosemore <sandra@codesourcery.com>
Wed, 5 Jan 2022 21:18:10 +0000 (13:18 -0800)
committerSandra Loosemore <sandra@codesourcery.com>
Thu, 6 Jan 2022 20:45:56 +0000 (12:45 -0800)
commit8e2771069ed0c157cca825d6af5792e94c4407c1
treeb4baee38d00056b0bed1d4a4007e80e5a02ec796
parentc2e5c4feed32c808591b5278f680bbabe63eb225
Fortran: Fix ICE in argument_rank_mismatch [PR103287]

This patch removes an incorrect assertion.  A user-friendly error for this
case is already given elsewhere.

2022-01-05  Steve Kargl  <kargl@gcc.gnu.org>
    Sandra Loosemore  <sandra@codesourcery.com>

PR fortran/103287

gcc/fortran/
* interface.c (argument_rank_mismatch): Replace incorrect assertion
with return.

gcc/testsuite/
* gfortran.dg/c-interop/pr103287-1.f90: new.
* gfortran.dg/c-interop/pr103287-2.f90: new.
gcc/fortran/interface.c
gcc/testsuite/gfortran.dg/c-interop/pr103287-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/c-interop/pr103287-2.f90 [new file with mode: 0644]