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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri May  5 21:34:36 2017
New Revision: 247678

URL: https://gcc.gnu.org/viewcvs?rev=247678&root=gcc&view=rev
Log:
        Backported from mainline
        2017-03-01  Jakub Jelinek  <ja...@redhat.com>

        PR c++/79681
        * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
        attempt to use its first operand as BIT_FIELD_REF base.

        * g++.dg/cpp1y/constexpr-79681-1.C: New test.
        * g++.dg/cpp1y/constexpr-79681-2.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-79681-1.C
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-79681-2.C
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/fold-const.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

Reply via email to