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