https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81607

--- Comment #13 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Aug 25 16:31:50 2017
New Revision: 251358

URL: https://gcc.gnu.org/viewcvs?rev=251358&root=gcc&view=rev
Log:
        PR c++/81607
        * cp-gimplify.c (cp_fold): If folding exposed a branch of
        a COND_EXPR, convert it to the original type of the COND_EXPR, if
        they differ.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/other/bitfield6.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/cp-gimplify.c

Reply via email to