| 1 |
// PR c++/53498 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template<typename... Args> |
| 5 |
struct B |
| 6 |
{ |
| 7 |
template<typename U> |
| 8 |
static |
| 9 |
void b(const U& u, const Args&... args, |
| 10 |
decltype(u.f(args...)) dummy) |
| 11 |
{ |
| 12 |
} |
| 13 |
}; |
| 14 |
|
| 15 |
int main() { |
| 16 |
B<int> b; |
| 17 |
} |