https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107000

--- Comment #24 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Mikael Morin <mik...@gcc.gnu.org>:

https://gcc.gnu.org/g:705ed42a1ad950860f46c51216ff69dbe0f4857a

commit r13-3176-g705ed42a1ad950860f46c51216ff69dbe0f4857a
Author: Harald Anlauf <anl...@gmx.de>
Date:   Tue Oct 4 23:04:06 2022 +0200

    Fortran: error recovery for invalid types in array constructors [PR107000]

    gcc/fortran/ChangeLog:

            PR fortran/107000
            * arith.cc (gfc_arith_error): Define error message for
            ARITH_INVALID_TYPE.
            (reduce_unary): Catch arithmetic expressions with invalid type.
            (reduce_binary_ac): Likewise.
            (reduce_binary_ca): Likewise.
            (reduce_binary_aa): Likewise.
            (eval_intrinsic): Likewise.
            (gfc_real2complex): Source expression must be of type REAL.
            * gfortran.h (enum arith): Add ARITH_INVALID_TYPE.

    gcc/testsuite/ChangeLog:

            PR fortran/107000
            * gfortran.dg/pr107000.f90: New test.

    Co-authored-by: Mikael Morin <mik...@gcc.gnu.org>

Reply via email to