This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/79199] [7 Regression] ICE with -Wduplicated-branches
- 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: Thu, 26 Jan 2017 11:38:05 +0000
- Subject: [Bug c/79199] [7 Regression] ICE with -Wduplicated-branches
- Auto-submitted: auto-generated
- References: <bug-79199-4@http.gcc.gnu.org/bugzilla/>
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