| 1 |
// PR c++/48292 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template <typename... Args> int g(Args...); |
| 5 |
|
| 6 |
template <int N = 0> |
| 7 |
struct A |
| 8 |
{ |
| 9 |
template <typename... Args> |
| 10 |
static auto f(Args... args) -> decltype(g(args...)); |
| 11 |
}; |
| 12 |
|
| 13 |
int main() |
| 14 |
{ |
| 15 |
A<>::f(); |
| 16 |
return 0; |
| 17 |
} |