]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/82040 (ICE with -Wbool-operation and ~)
authorMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 1 Sep 2017 09:22:57 +0000 (09:22 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 1 Sep 2017 09:22:57 +0000 (09:22 +0000)
commit8dc9277a90672a0b2d5a18bd989c6d99ca362746
tree4bf5c53df1cabd08278d1fb21aca1d4ee366c4c0
parent61fae4b1db70f99aff3f75359abf3fcd6ad689a4
re PR c++/82040 (ICE with -Wbool-operation and ~)

PR c++/82040
* typeck.c (cp_build_unary_op): Avoid re-entering reporting routines.

* g++.dg/warn/Wbool-operation-1.C: New test.

From-SVN: r251581
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wbool-operation-1.C [new file with mode: 0644]