re PR c/79199 (ICE with -Wduplicated-branches)
authorMarek Polacek <polacek@redhat.com>
Thu, 26 Jan 2017 11:37:33 +0000 (11:37 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 26 Jan 2017 11:37:33 +0000 (11:37 +0000)
commit0a38b341a8c6e6ee8357ca78c3105b7082337611
tree882bcee393cd010c57edabcd8c3e0e1059edea07
parent237499040f67c64bd509efe133f7463816bef933
re PR c/79199 (ICE with -Wduplicated-branches)

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.

From-SVN: r244928
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wduplicated-branches-13.c [new file with mode: 0644]