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:
parent
9e2a630132
commit
444d528831
@ -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.
|
||||
|
11
gcc/testsuite/g++.dg/init/bitfield3.C
Normal file
11
gcc/testsuite/g++.dg/init/bitfield3.C
Normal file
@ -0,0 +1,11 @@
|
||||
// PR c++/43663
|
||||
|
||||
struct S
|
||||
{
|
||||
S(): i(0) {}
|
||||
int i : 3;
|
||||
};
|
||||
|
||||
S s;
|
||||
|
||||
const int& cr(s.i);
|
Loading…
Reference in New Issue
Block a user