]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Diagnose all operands/arguments with constraint violations
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 4 Nov 2021 22:43:29 +0000 (15:43 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Sun, 7 Nov 2021 17:35:04 +0000 (09:35 -0800)
commitee11be7f2d788e6055ebed9746a8d8ac3cb04b8e
treea96c18c77e62872d69d6c8ba6d96f7278ce9a88c
parentf6f704fd104b79fc88914978772737cd05423059
Fortran: Diagnose all operands/arguments with constraint violations

04-Nov-2021  Sandra Loosemore <sandra@codesourcery.com>
     Bernhard Reutner-Fischer <aldot@gcc.gnu.org>

 PR fortran/101337

gcc/fortran/ChangeLog:
* interface.c (gfc_compare_actual_formal): Continue checking
all arguments after encountering an error.
* intrinsic.c (do_ts29113_check): Likewise.
* resolve.c (resolve_operator): Continue resolving on op2 error.

gcc/testsuite/ChangeLog:
* gfortran.dg/bessel_3.f90: Expect additional diagnostics from
multiple bad arguments in the call.
* gfortran.dg/pr24823.f: Likewise.
* gfortran.dg/pr39937.f: Likewise.
* gfortran.dg/pr41011.f: Likewise.
* gfortran.dg/pr61318.f90: Likewise.
* gfortran.dg/c-interop/c407b-2.f90: Remove xfails.
* gfortran.dg/c-interop/c535b-2.f90: Likewise.
gcc/fortran/interface.c
gcc/fortran/intrinsic.c
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/bessel_3.f90
gcc/testsuite/gfortran.dg/c-interop/c407b-2.f90
gcc/testsuite/gfortran.dg/c-interop/c535b-2.f90
gcc/testsuite/gfortran.dg/pr24823.f
gcc/testsuite/gfortran.dg/pr39937.f
gcc/testsuite/gfortran.dg/pr41011.f
gcc/testsuite/gfortran.dg/pr61318.f90