[Bug c/5675] [4.0 regression] const variables wrongly considered part of constant expressions

ian at airs dot com gcc-bugzilla@gcc.gnu.org
Thu Jan 13 02:34:00 GMT 2005


------- Additional Comments From ian at airs dot com  2005-01-13 02:34 -------
Just a note that reverting this patch:
    http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01334.html
fixes this regression.  Reverting that patch

Jan said that his patch did not change the results of the test, so presumably
something else changed somewhere.

Reverting that patch removes most of the warnings from c90-const-expr-3.c and
c99-const-expr-3.c, although we still get warnings for +0.0, 0.0+0.0, and
(double)0.0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at airs dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5675



More information about the Gcc-bugs mailing list