// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s template struct X {}; auto b = []() { struct S { static typename X::type Run(){}; // expected-error@-1 4{{}} }; return 5; }(); template class PC { }; template class P { static typename PC::Type Foo(); // expected-error@-1 4{{}} };