aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi-template12.C
blob: 52ae257200f0dcdcc6637a2aa532729b8ab64142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/58753
// { dg-do compile { target c++11 } }

#include <initializer_list>

template <class T>
struct X {X(std::initializer_list<int>) {}};

template <class zomg>
class T {
  X<T> x{1};
};

int main()
{
  T<int> t;
}