struct A
{
  int const i : 2;
};

void f()
{
  A a; // <- should fail
  new A; // <- should fail
}


-- 
           Summary: undiagnosed invalid default initialization of bit field
                    members
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fabien dot chene at gmail dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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

Reply via email to