OSDN Git Service

Implement C++11 delegating constructors.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / variadic112.C
1 // PR c++/49420
2 // { dg-options -std=c++0x }
3
4 struct A { };
5
6 template <class T> struct B
7 {
8   typedef typename T::type type ; // { dg-error "no type" }
9 };
10
11 template <typename Array, typename... Args>
12 typename B<Array>::type
13 get(const Array& a, Args... args);
14
15 int main()
16 {
17   A a;
18   int x = get(a, 1, 2, 3);      // { dg-error "no match" }
19 }