re PR c++/49136 ([C++0x][constexpr] Incorrect constexpr c'tor evaluation with bitfields)
authorJakub Jelinek <jakub@redhat.com>
Wed, 25 May 2011 07:00:01 +0000 (09:00 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 25 May 2011 07:00:01 +0000 (09:00 +0200)
commit98933689804f4e8c36f5958a26b34ea7842b10a7
treee983cd89f9335030a3aef83f37438b9d6cb1e8bc
parent349ea8e8550b73e69673f629df24d79902b4d371
re PR c++/49136 ([C++0x][constexpr] Incorrect constexpr c'tor evaluation with bitfields)

PR c++/49136
* semantics.c (cxx_eval_bit_field_ref): Handle the
case when BIT_FIELD_REF doesn't cover only a single field.

* g++.dg/cpp0x/constexpr-bitfield2.C: New test.
* g++.dg/cpp0x/constexpr-bitfield3.C: New test.

From-SVN: r174168
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-bitfield2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-bitfield3.C [new file with mode: 0644]