https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79184

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Feb 10 16:33:45 2017
New Revision: 245335

URL: https://gcc.gnu.org/viewcvs?rev=245335&root=gcc&view=rev
Log:
        PR c++/79184
        * cvt.c (ocp_convert): Add a sentinel against -Wint-in-bool-context
        if warnings shouldn't be given.

        * g++.dg/warn/Wint-in-bool-context-1.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/warn/Wint-in-bool-context-1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cvt.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to