re PR c++/79681 (ICE with constexpr and bitfield)
authorJakub Jelinek <jakub@redhat.com>
Wed, 1 Mar 2017 09:02:12 +0000 (10:02 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 1 Mar 2017 09:02:12 +0000 (10:02 +0100)
commit42132674e5c9e7978a7d7d9283682f89639e236e
tree90bace33bc8bb839de2a9bf73929c8d73b391cde
parent0100ae430272feaa208b02c32e52d530cd9c8644
re PR c++/79681 (ICE with constexpr and bitfield)

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.

From-SVN: r245804
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/constexpr-79681-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/constexpr-79681-2.C [new file with mode: 0644]