https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88298
--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Sat Feb 2 17:07:40 2019 New Revision: 268479 URL: https://gcc.gnu.org/viewcvs?rev=268479&root=gcc&view=rev Log: 2019-02-02 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/88298 Backport from trunk * arith.c (gfc_int2int): Do not warn if src->do_not_warn is set. * gfortran.h (gfc_expr): Add flag do_not_warn. * intrinsic.c (gfc_convert_type_warn): Set expr->do_not_warn if no warning is desired. 2019-02-02 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/88298 Backport from trunk * gfortran.dg/warn_conversion_10.f90: New test. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/warn_conversion_10.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/arith.c branches/gcc-7-branch/gcc/fortran/gfortran.h branches/gcc-7-branch/gcc/fortran/intrinsic.c branches/gcc-7-branch/gcc/testsuite/ChangeLog