[Bug c++/17041] [3.5 regression] Erroneous "suggest parentheses around assignment used as truth value" warning in template members.

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Aug 17 15:00:00 GMT 2004


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-08-17 15:00 -------
Jason, your patch
  http://gcc.gnu.org/ml/gcc-cvs/2004-07/msg00990.html
seems to be responsible for the regression.

Could you please have a look?

Btw, here's an even shorter testcase:

====================================================
template<int> struct A
{
    int i;
    A() { if ((i = 0)) ; }
};

A<0> a;
====================================================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsm28 at gcc dot gnu dot
                   |                            |org, reichelt at gcc dot gnu
                   |                            |dot org
           Severity|normal                      |critical
           Keywords|                            |monitored


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



More information about the Gcc-bugs mailing list