]>
Commit | Line | Data |
---|---|---|
89a27d8f | 1 | // PR c++/49420 |
4b2e63de | 2 | // { dg-do compile { target c++11 } } |
89a27d8f JM |
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 | } |