This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36069] Strange "warning: suggest parentheses around assignment used as truth value" with volatile/non volatile bools
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Aug 2009 23:51:20 -0000
- Subject: [Bug c++/36069] Strange "warning: suggest parentheses around assignment used as truth value" with volatile/non volatile bools
- References: <bug-36069-16123@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from manu at gcc dot gnu dot org 2009-08-04 23:51 -------
Subject: Bug 36069
Author: manu
Date: Tue Aug 4 23:51:07 2009
New Revision: 150471
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150471
Log:
2009-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/36069
cp/
* typeck.c (convert_for_assignment): Do not warn for any boolean
variant. Use explicit location.
testsuite/
* g++.dg/warn/pr36069.C: New.
Added:
trunk/gcc/testsuite/g++.dg/warn/pr36069.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36069