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

--- Comment #4 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:53955284c031a17e6e49e730ef8947fe557ff35e

commit r13-3238-g53955284c031a17e6e49e730ef8947fe557ff35e
Author: Harald Anlauf <anl...@gmx.de>
Date:   Tue Oct 11 20:37:42 2022 +0200

    Fortran: check types of source expressions before conversion [PR107215]

    gcc/fortran/ChangeLog:

            PR fortran/107215
            * arith.cc (gfc_int2int): Check validity of type of source expr.
            (gfc_int2real): Likewise.
            (gfc_int2complex): Likewise.
            (gfc_real2int): Likewise.
            (gfc_real2real): Likewise.
            (gfc_complex2int): Likewise.
            (gfc_complex2real): Likewise.
            (gfc_complex2complex): Likewise.
            (gfc_log2log): Likewise.
            (gfc_log2int): Likewise.
            (gfc_int2log): Likewise.

    gcc/testsuite/ChangeLog:

            PR fortran/107215
            * gfortran.dg/pr107215.f90: New test.

Reply via email to