This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82040] [7/8 Regression] ICE with -Wbool-operation and ~
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 01 Sep 2017 09:25:25 +0000
- Subject: [Bug c++/82040] [7/8 Regression] ICE with -Wbool-operation and ~
- Auto-submitted: auto-generated
- References: <bug-82040-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82040
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Sep 1 09:24:54 2017
New Revision: 251582
URL: https://gcc.gnu.org/viewcvs?rev=251582&root=gcc&view=rev
Log:
PR c++/82040
* typeck.c (cp_build_unary_op): Avoid re-entering reporting routines.
* g++.dg/warn/Wbool-operation-1.C: New test.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/warn/Wbool-operation-1.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/typeck.c