Debian Codegraph @

clang/test/SemaCXX/PR20705.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
2
3 template <typename T>
4 struct X {};
5 auto b = []() {
6 struct S {
7 static typename X<decltype(int)>::type Run(){}; // expected-error {{expected '('}}
8 };
9 return 5;
10 }();
11
12 template <typename T1, typename T2>
13 class PC {
14 };
15
16 template <typename T>
17 class P {
18 static typename PC<T, Invalid>::Type Foo(); // expected-error {{undeclared identifier 'Invalid'}}
19 };