OK - thanks for the patch. Paul
On Sat, 2 Feb 2019 at 14:41, Thomas Koenig <tkoe...@netcologne.de> wrote: > > Hi, > > the attached patch fixes a 7/8/9 regression where a conversion warning > was emitted for DIM. The problem was that the no-warn flag had not been > passed down to the arithmetic conversion routines, which is solved here > by adding and using a flag in gfc_expr. > > Regression-tested. OK for affected branches? > > Regards > > Thomas > > 2019-02-02 Thomas Koenig <tkoe...@gcc.gnu.org> > > PR fortran/88298 > * 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 > * gfortran.dg/warn_conversion_10.f90: New test. -- "If you can't explain it simply, you don't understand it well enough" - Albert Einstein