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 igpm dot rwth-aachen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2004 15:31:12 -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 igpm dot rwth-aachen dot de 2004-08-17 15:31 -------
Subject: Re: [3.5 regression] Erroneous
"suggest parentheses around assignment used as truth value" warning in
template members.
On 17 Aug, jsm at polyomino dot org dot uk wrote:
> I take it then that this works (i.e. doesn't warn) in 3.3.x or earlier,
> for it to be a regression? Since this warning was *completely* broken
> (i.e. never warning even when it should) in 3.4.x as it hadn't been
> reimplemented for the new parser.
All compilers from (at least) 2.95.3 up to and including 3.4.1 correctly
do not issue a warning for the testcase.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17041