This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]