Message ID | 4E7F05BF.3010209@oracle.com |
---|---|
State | New |
Headers | show |
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); +}