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/79199] [7 Regression] ICE with -Wduplicated-branches


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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Jan 26 11:37:33 2017
New Revision: 244928

URL: https://gcc.gnu.org/viewcvs?rev=244928&root=gcc&view=rev
Log:
        PR c/79199
        * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
        for the third operand.

        * c-c++-common/Wduplicated-branches-13.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.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]