Thomas Koenig wrote:
now that I have found a little time, here is an updated version of
the patch, which incorporates Tobias' suggestions.  Regression-tested.

OK for trunk?

OK. Thanks for the patch!

Tobias

2011-08-21  Thomas Koenig <tkoe...@gcc.gnu.org>

        PR fortran/47659
        * expr.c (gfc_check_assign): Check for type conversions when the
right-hand side is a constant REAL/COMPLEX contstant the left-hand side is also REAL/COMPLEX. Don't warn when a narrowing conversion
        for REAL does not change the value of the constant.

2011-08-21  Thomas Koenig <tkoe...@gcc.gnu.org>

        PR fortran/47659
        * gfortran.dg/warn_conversion_2.f90:  Also warn about conversion
        of a constant resulting from simplification.
        * gfortran.dg/warn_conversion_3.f90:  New test.

Reply via email to