]>
Commit | Line | Data |
---|---|---|
d78aecf4 JM |
1 | // PR c++/83227 |
2 | // { dg-do compile { target c++11 } } | |
3 | ||
4 | #include <initializer_list> | |
5 | ||
6 | template <typename d> struct f { | |
7 | f(std::initializer_list<d>) {} | |
8 | }; | |
9 | ||
10 | struct h {}; | |
11 | struct i : h { | |
12 | i(); | |
13 | }; | |
14 | void foo(f<h>); | |
15 | int main() { | |
16 | foo({i{}}); | |
17 | } |