1 // RUN: %clang_cc1 -frecovery-ast -verify %s
3 bool Foo(int *); // expected-note 3{{candidate function not viable}}
6 struct Crash
: decltype(Foo(T())) { // expected-error {{no matching function for call to 'Foo'}}
10 void test() { Crash
<int>(); } // expected-note {{in instantiation of template class}}
13 using Alias
= decltype(Foo(T())); // expected-error {{no matching function for call to 'Foo'}}
15 struct Crash2
: decltype(Alias
<T
>()) { // expected-note {{in instantiation of template type alias 'Alias' requested here}}
19 void test2() { Crash2
<int>(); } // expected-note {{in instantiation of template class 'Crash2<int>' requested here}}
24 struct Crash3
: Base
<decltype(Foo(T()))> { // expected-error {{no matching function for call to 'Foo'}}
28 void test3() { Crash3
<int>(); } // expected-note {{in instantiation of template class}}