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

--- Comment #2 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:34cecde675be67543b386b593132ce8b1bb0a3ab

commit r13-3339-g34cecde675be67543b386b593132ce8b1bb0a3ab
Author: Harald Anlauf <anl...@gmx.de>
Date:   Sun Oct 16 20:32:27 2022 +0200

    Fortran: check type of operands of logical operations, comparisons
[PR107272]

    gcc/fortran/ChangeLog:

            PR fortran/107272
            * arith.cc (gfc_arith_not): Operand must be of type BT_LOGICAL.
            (gfc_arith_and): Likewise.
            (gfc_arith_or): Likewise.
            (gfc_arith_eqv): Likewise.
            (gfc_arith_neqv): Likewise.
            (gfc_arith_eq): Compare consistency of types of operands.
            (gfc_arith_ne): Likewise.
            (gfc_arith_gt): Likewise.
            (gfc_arith_ge): Likewise.
            (gfc_arith_lt): Likewise.
            (gfc_arith_le): Likewise.

    gcc/testsuite/ChangeLog:

            PR fortran/107272
            * gfortran.dg/pr107272.f90: New test.

Reply via email to