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++/82040] [7/8 Regression] ICE with -Wbool-operation and ~


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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Sep  1 09:22:57 2017
New Revision: 251581

URL: https://gcc.gnu.org/viewcvs?rev=251581&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:
    trunk/gcc/testsuite/g++.dg/warn/Wbool-operation-1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog

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