// { dg-do link } // { dg-options "-ansi -pedantic-errors -w" } // GROUPS passed templates template struct S { template static double foo(U u) { return (double) u; } }; int main() { double d = S::foo(3.3); return (d >= 3.1); }