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