2 // { dg-options -std=c++0x }
3 // In C++98/03, B::B(const B&) is trivial because A::A(const A&) is trivial,
4 // even though doing overload resolution would mean calling the template
5 // constructor. In C++0x, we do overload resolution to determine triviality.
11 template <class T> A(T&); // { dg-error "private" }
14 struct B // { dg-error "implicitly deleted|this context" }
22 B b2(b); // { dg-error "deleted" }