[Bug fortran/108592] In IF statements -Winteger-division is repeated 4 times

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 5 21:53:53 GMT 2023


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

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

https://gcc.gnu.org/g:d042f118798ae0648b45f97e63b0e5ab7c82c8ef

commit r13-5705-gd042f118798ae0648b45f97e63b0e5ab7c82c8ef
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Mon Jan 30 22:46:43 2023 +0100

    Fortran: prevent redundant integer division truncation warnings [PR108592]

    gcc/fortran/ChangeLog:

            PR fortran/108592
            * arith.cc (gfc_arith_divide): Emit integer division truncation
            warnings using gfc_warning instead of gfc_warning_now to prevent
            redundant messages.

    gcc/testsuite/ChangeLog:

            PR fortran/108592
            * gfortran.dg/pr108592.f90: New test.


More information about the Gcc-bugs mailing list