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++/36069] Strange "warning: suggest parentheses around assignment used as truth value" with volatile/non volatile bools



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


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