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