Commit 13ec1cca by Paolo Carlini Committed by Paolo Carlini

re PR c++/50280 (Incorrect type deduced for T& when passed a const bitfield)

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

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

From-SVN: r179163
parent 4e4452b6
2011-09-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/50280
* g++.dg/template/bitfield1.C: New.
2011-09-25 Ira Rosen <ira.rosen@linaro.org>
* gcc.dg/vect/bb-slp-24.c: New.
......
// 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment