diff mbox

[C++,testcase,committed] PR 50280

Message ID 4E7F05BF.3010209@oracle.com
State New
Headers show

Commit Message

Paolo Carlini Sept. 25, 2011, 10:43 a.m. UTC
Hi,

I'm committing as obvious the testcase and closing the PR as fixed for 4.7.

Thanks,
Paolo.

/////////////////////
2011-09-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50280
	* g++.dg/template/bitfield1.C: New.
diff mbox

Patch

Index: g++.dg/template/bitfield1.C
===================================================================
--- g++.dg/template/bitfield1.C	(revision 0)
+++ g++.dg/template/bitfield1.C	(revision 0)
@@ -0,0 +1,11 @@ 
+// PR c++/50280
+
+struct S { int bf : 3; };
+
+template<class _T1>
+void make_pair(_T1& __x) {}
+
+void foo() {
+  const S s = S();
+  make_pair(s.bf);
+}