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 | 5641233047034ae122c0204cb91b6e5f2da29319 (patch) | |
| tree | f002ab98b0e25025cb6ff3be94d1e0e8af967dd7 /clang/test/SemaTemplate/instantiation-backtrace.cpp | |
| parent | 6a5f7c22adbd9e1cf2d6adf36a8ec523a2fc3788 (diff) | |
| download | bcm5719-llvm-5641233047034ae122c0204cb91b6e5f2da29319.tar.gz bcm5719-llvm-5641233047034ae122c0204cb91b6e5f2da29319.zip | |
Use the appropriate SourceLocation for the template backtrace when doing
template argument deduction.
llvm-svn: 198995
Diffstat (limited to 'clang/test/SemaTemplate/instantiation-backtrace.cpp')
| -rw-r--r-- | clang/test/SemaTemplate/instantiation-backtrace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaTemplate/instantiation-backtrace.cpp b/clang/test/SemaTemplate/instantiation-backtrace.cpp index f640836b768..39dfb0b32a2 100644 --- a/clang/test/SemaTemplate/instantiation-backtrace.cpp +++ b/clang/test/SemaTemplate/instantiation-backtrace.cpp @@ -39,13 +39,13 @@ namespace PR13365 { template <class T1, class T2> typename ResultTy<T2>::error Deduce( void (T1::*member)(T2) ) {} // \ // expected-note {{instantiation of template class 'PR13365::ResultTy<int &>'}} \ - // expected-note {{substituting deduced template arguments into function template 'Deduce' [with T1 = PR13365::Cls, T2 = int &]}} \ // expected-note {{substitution failure [with T1 = PR13365::Cls, T2 = int &]}} struct Cls { void method(int&); }; void test() { - Deduce(&Cls::method); // expected-error {{no matching function}} + Deduce(&Cls::method); // expected-error {{no matching function}} \ + // expected-note {{substituting deduced template arguments into function template 'Deduce' [with T1 = PR13365::Cls, T2 = int &]}} } } |

