[Bug c/79199] [7 Regression] ICE with -Wduplicated-branches
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 26 11:38:00 GMT 2017
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
More information about the Gcc-bugs
mailing list