1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -ftemplate-depth 16 -fcxx-exceptions -fexceptions %s 2*67e74705SXin Li 3*67e74705SXin Li template<typename T> T go(T a) noexcept(noexcept(go(a))); // \ 4*67e74705SXin Li // expected-error 16{{call to function 'go' that is neither visible}} \ 5*67e74705SXin Li // expected-note 16{{'go' should be declared prior to the call site}} \ 6*67e74705SXin Li // expected-error {{recursive template instantiation exceeded maximum depth of 16}} 7*67e74705SXin Li f()8*67e74705SXin Livoid f() { 9*67e74705SXin Li int k = go(0); // \ 10*67e74705SXin Li // expected-note {{in instantiation of exception specification for 'go<int>' requested here}} 11*67e74705SXin Li } 12