Hi,

I'm committing the testcase and closing the PR as fixed. Tested x86_64-linux.

Thanks,
Paolo.

/////////////////////////////
2012-10-10  Paolo Carlini  <paolo.carl...@oracle.com>

        PR c++/43663
        * g++.dg/init/bitfield3.C: New.
Index: g++.dg/init/bitfield3.C
===================================================================
--- g++.dg/init/bitfield3.C     (revision 0)
+++ g++.dg/init/bitfield3.C     (working copy)
@@ -0,0 +1,11 @@
+// PR c++/43663
+
+struct S
+{
+  S(): i(0) {}
+  int i : 3;
+};
+
+S s;
+
+const int& cr(s.i);

Reply via email to