[Bug c++/36069] Strange warning: suggest parentheses around assignment used as truth value with volatile/non volatile bools

2009-08-04 Thread manu at gcc dot gnu dot org


--- Comment #2 from manu at gcc dot gnu dot org  2009-08-04 16:23 ---
Confirmed in trunk.


-- 

manu at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||manu at gcc dot gnu dot org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-08-04 16:23:02
   date||


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



[Bug c++/36069] Strange warning: suggest parentheses around assignment used as truth value with volatile/non volatile bools

2009-08-04 Thread manu 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=gccview=revrev=150471
Log:
2009-08-05  Manuel López-Ibáñez  m...@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



[Bug c++/36069] Strange warning: suggest parentheses around assignment used as truth value with volatile/non volatile bools

2009-08-04 Thread manu at gcc dot gnu dot org


--- Comment #4 from manu at gcc dot gnu dot org  2009-08-04 23:52 ---
FIXED in GCC 4.5. Thanks for the report.


-- 

manu at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug c++/36069] Strange warning: suggest parentheses around assignment used as truth value with volatile/non volatile bools

2008-04-28 Thread David dot Tschumperle at greyc dot ensicaen dot fr


--- Comment #1 from David dot Tschumperle at greyc dot ensicaen dot fr  
2008-04-28 10:55 ---
Also, removing the warning without adding or removing 'volatile' can be
achieved by writting :

foo() { a = (b = (c = false)); }


-- 


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