[Bug c++/49136] [C++0x][constexpr] Incorrect constexpr c'tor evaluation with bitfields

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 25 07:30:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49136

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-25 07:00:06 UTC ---
Author: jakub
Date: Wed May 25 07:00:01 2011
New Revision: 174168

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174168
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:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-bitfield2.C
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-bitfield3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list