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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>:

https://gcc.gnu.org/g:7858368c3f3875f6bf634119e5731dc3c808a7c3

commit r13-3260-g7858368c3f3875f6bf634119e5731dc3c808a7c3
Author: Harald Anlauf <anl...@gmx.de>
Date:   Tue Oct 11 22:08:48 2022 +0200

    Fortran: check types of operands of arithmetic binary operations [PR107217]

    gcc/fortran/ChangeLog:

            PR fortran/107217
            * arith.cc (gfc_arith_plus): Compare consistency of types of
operands.
            (gfc_arith_minus): Likewise.
            (gfc_arith_times): Likewise.
            (gfc_arith_divide): Likewise.
            (arith_power): Check that both operands are of numeric type.

    gcc/testsuite/ChangeLog:

            PR fortran/107217
            * gfortran.dg/pr107217.f90: New test.

Reply via email to