| 1 |
// { dg-do link } |
| 2 |
// { dg-options "-ansi -pedantic-errors -w" } |
| 3 |
// GROUPS passed templates |
| 4 |
template <class T> |
| 5 |
struct S |
| 6 |
{ |
| 7 |
template <class U> |
| 8 |
static double foo(U u) { return (double) u; } |
| 9 |
}; |
| 10 |
|
| 11 |
|
| 12 |
int main() |
| 13 |
{ |
| 14 |
double d = S<int>::foo<char>(3.3); |
| 15 |
|
| 16 |
return (d >= 3.1); |
| 17 |
} |