summaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiation-depth-subst-2.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2014-01-11 02:37:12 +0000
committerNick Lewycky <nicholas@mxc.ca>2014-01-11 02:37:12 +0000
commit99d7f9f979b18ece720802b1551ddb894bc4ff4a (patch)
tree9252e3f5a0d5611e2502f909882b6f7216ca7b3f /test/SemaTemplate/instantiation-depth-subst-2.cpp
parentdaffa2c523921ffdd333be145e7f0f77cd02f39c (diff)
downloadclang-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.cpp4
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}}