https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87248
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Sep 12 09:18:55 2018 New Revision: 264230 URL: https://gcc.gnu.org/viewcvs?rev=264230&root=gcc&view=rev Log: PR middle-end/87248 * fold-const.c (fold_ternary_loc) <case COND_EXPR>: Verify also that BIT_AND_EXPR's second operand is a power of two. Formatting fix. * c-c++-common/torture/pr87248.c: New test. Added: trunk/gcc/testsuite/c-c++-common/torture/pr87248.c Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c trunk/gcc/testsuite/ChangeLog