Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/nsdmi-template12.C

raw
1 // PR c++/58753
2 // { dg-do compile { target c++11 } }
3
4 #include <initializer_list>
5
6 template <class T>
7 struct X {X(std::initializer_list<int>) {}};
8
9 template <class zomg>
10 class T {
11 X<T> x{1};
12 };
13
14 int main()
15 {
16 T<int> t;
17 }