// PR c++/119580 // { dg-do compile { target c++11 } } template struct V; template class C; class F; struct S { template static void foo (); template C)> foo (); decltype(foo>()) *a; }; S s;