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