diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2014-01-11 02:37:12 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2014-01-11 02:37:12 +0000 |
commit | 99d7f9f979b18ece720802b1551ddb894bc4ff4a (patch) | |
tree | 9252e3f5a0d5611e2502f909882b6f7216ca7b3f /test/SemaTemplate/instantiation-depth-subst-2.cpp | |
parent | daffa2c523921ffdd333be145e7f0f77cd02f39c (diff) | |
download | clang-99d7f9f979b18ece720802b1551ddb894bc4ff4a.tar.gz |
Use the appropriate SourceLocation for the template backtrace when doing
template argument deduction.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiation-depth-subst-2.cpp')
-rw-r--r-- | test/SemaTemplate/instantiation-depth-subst-2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaTemplate/instantiation-depth-subst-2.cpp b/test/SemaTemplate/instantiation-depth-subst-2.cpp index ef2a5c765d..c9df093b1f 100644 --- a/test/SemaTemplate/instantiation-depth-subst-2.cpp +++ b/test/SemaTemplate/instantiation-depth-subst-2.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -verify %s -ftemplate-depth 2 template<int N> struct S { }; -template<typename T> S<T() + T()> operator+(T, T); // expected-error {{instantiation exceeded maximum depth}} expected-note 3{{while substituting}} +template<typename T> S<T() + T()> operator+(T, T); // expected-error {{instantiation exceeded maximum depth}} expected-note 2{{while substituting}} S<0> s; -int k = s + s; +int k = s + s; // expected-note {{while substituting}} |