Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist-ref-2267.C
blobdfd735a5add94659623bc61762d8654060375263
1 // CWG 2267
2 // { dg-do compile { target c++11 } }
4 struct A {} a; 
5 struct B { explicit B(const A&); }; 
6 B b1(a); // #1, ok 
7 const B &b2{a}; // { dg-error "" }
8 const B &b3(a); // { dg-error "" }
10 struct D { D(); }; 
11 struct C { explicit operator D(); } c; 
12 D d1(c); // ok 
13 const D &d2{c}; // { dg-error "" }
14 const D &d3(c); // { dg-error "" }