http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49136
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-25 07:03:28 UTC --- Author: jakub Date: Wed May 25 07:03:25 2011 New Revision: 174169 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174169 Log: 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. Added: branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-bitfield2.C branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-bitfield3.C Modified: branches/gcc-4_6-branch/gcc/cp/ChangeLog branches/gcc-4_6-branch/gcc/cp/semantics.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog