| 1 |
// PR c++/108116 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
#include <initializer_list> |
| 5 |
|
| 6 |
struct A { |
| 7 |
A(int); |
| 8 |
~A(); |
| 9 |
}; |
| 10 |
|
| 11 |
struct B { |
| 12 |
B(std::initializer_list<A>); |
| 13 |
}; |
| 14 |
|
| 15 |
struct C { |
| 16 |
B m{0}; |
| 17 |
}; |
| 18 |
|
| 19 |
template<class> |
| 20 |
void f() { |
| 21 |
C c = C{}; |
| 22 |
}; |