• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
2 
3 template <typename T>
4 struct X {};
__anon0cdf60f40102() 5 auto b = []() {
6   struct S {
7     static typename X<decltype(int)>::type Run(){};
8     // expected-error@-1 4{{}}
9   };
10   return 5;
11 }();
12 
13 template <typename T1, typename T2>
14 class PC {
15 };
16 
17 template <typename T>
18 class P {
19   static typename PC<T, Invalid>::Type Foo();
20   // expected-error@-1 4{{}}
21 };
22