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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Mar  9 18:26:52 2015
New Revision: 221284

URL: https://gcc.gnu.org/viewcvs?rev=221284&root=gcc&view=rev
Log:
    PR c/65120
    * c-typeck.c (parser_build_binary_op): Don't warn for
    !!x == y or !b == y where b is _Bool.

    * parser.c (cp_parser_binary_expression): Don't warn for
    !!x == y or !b == y where b is bool.

    * c-c++-common/pr49706.c: Adjust tests for not warning
    about !!x == y or !b == y where b is boolean, and add
    some further tests.
    * c-c++-common/pr62199-2.c: Likewise.

Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/pr49706.c
    trunk/gcc/testsuite/c-c++-common/pr62199-2.c

Reply via email to