| 1 |
// PR c++/113908 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
struct A { |
| 5 |
A(); |
| 6 |
private: |
| 7 |
A(const A&); |
| 8 |
}; |
| 9 |
|
| 10 |
struct B { |
| 11 |
A a; |
| 12 |
|
| 13 |
template<class T> |
| 14 |
static void f() { new B(); } |
| 15 |
}; |
| 16 |
|
| 17 |
template void B::f<int>(); |
| 18 |
static_assert(!__is_constructible(B, const B&), ""); |