https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87248
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Oct 12 17:33:25 2018 New Revision: 265121 URL: https://gcc.gnu.org/viewcvs?rev=265121&root=gcc&view=rev Log: Backported from mainline 2018-09-12 Jakub Jelinek <ja...@redhat.com> 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: branches/gcc-6-branch/gcc/testsuite/c-c++-common/torture/pr87248.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/fold-const.c branches/gcc-6-branch/gcc/testsuite/ChangeLog