diff options
Diffstat (limited to 'test/SemaTemplate/instantiation-depth-subst.cpp')
-rw-r--r-- | test/SemaTemplate/instantiation-depth-subst.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/SemaTemplate/instantiation-depth-subst.cpp b/test/SemaTemplate/instantiation-depth-subst.cpp index 58e6374..06795f9 100644 --- a/test/SemaTemplate/instantiation-depth-subst.cpp +++ b/test/SemaTemplate/instantiation-depth-subst.cpp @@ -3,7 +3,7 @@ // PR9793 template<typename T> auto f(T t) -> decltype(f(t)); // \ // expected-error {{recursive template instantiation exceeded maximum depth of 2}} \ -// expected-note 3 {{while substituting}} \ -// expected-note {{candidate}} +// expected-note 3 {{while substituting}} -int k = f(0); // expected-error {{no matching function for call to 'f'}} +struct S {}; +int k = f(S{}); |