Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/variadic112.C

raw
1 // PR c++/49420
2 // { dg-do compile { target c++11 } }
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 }