re PR c++/43663 (Can't take a const-ref to a bit field)

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

	PR c++/43663
	* g++.dg/init/bitfield3.C: New.

From-SVN: r192347
This commit is contained in:
Paolo Carlini 2012-10-11 02:34:32 +00:00 committed by Paolo Carlini
parent 9e2a630132
commit 444d528831
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-10-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/43663
* g++.dg/init/bitfield3.C: New.
2012-10-10 Richard Sandiford <rdsandiford@googlemail.com>
* gcc.target/mips/mips32-dsp-accinit-2.c: Fix test description.

View File

@ -0,0 +1,11 @@
// PR c++/43663
struct S
{
S(): i(0) {}
int i : 3;
};
S s;
const int& cr(s.i);