[Committed] PR fortran/91553 -- simplification of constants needs to check for parenthesis

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Committed] PR fortran/91553 -- simplification of constants needs to check for parenthesis

Steve Kargl
Committed as obvious (once the problem is identified).

When simplification of an expression occurs, parenthesis can
be inserted.  When simplifying a constant expression, need to
check for inserted parenthesis.

2019-09-11  Steven G. Kargl  <[hidden email]>

        PR fortran/91553
        * simplify.c (gfc_convert_constant):  During conversion check if the
        constant is enclosed in parenthesis, and simplify expression.

2019-09-11  Steven G. Kargl  <[hidden email]>

        PR fortran/91553
        * gfortran.dg/pr91553.f90: New test.

--
Steve

pr91553.diff (1K) Download Attachment