This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17041] [3.5 regression] Erroneous "suggest parentheses around assignment used as truth value" warning in template members.
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2004 15:00:19 -0000
- Subject: [Bug c++/17041] [3.5 regression] Erroneous "suggest parentheses around assignment used as truth value" warning in template members.
- References: <20040815223820.17041.carlo@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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