// PR c++/53763 // { dg-do compile { target c++11 } } template struct A { static int a(TYPE value) { return value; } }; template struct B { static int b(ARGS...) { return 0; } }; int main() { int x = B::a(1))>::b(A::a(1)); int y = B::b(A::a(2)); // { dg-error "template argument" } return x + y; }