aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-sizeof3.C
blob: 7296500a3adc296568b6b637e7545b35fb5ae615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/59435
// { dg-require-effective-target c++11 }

template <typename... E>
struct T
{
  T(unsigned int i = sizeof...(E)){} // does not compile
    
  static constexpr unsigned int U = sizeof...(E);
  T(unsigned int j, unsigned int i = U){} //  compile
};

template <typename... T>
void test(int i = sizeof...(T)) // compile
{}