// RUN: %clang_cc1 -fms-compatibility -fsyntax-only -verify %s struct C { template static int foo(T); }; template static int C::foo(T) { //expected-warning@-1 {{'static' can only be specified inside the class definition}} return 0; }