diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-10-29 17:56:10 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-10-29 17:56:10 +0000 |
commit | ba91b89711c5dde1f52817792bed3efa5f54580b (patch) | |
tree | 7d93a0897acb152bd4ceeb30f0925c36912fa977 /clang/test/SemaTemplate/template-id-expr.cpp | |
parent | 104f57cae80149e7420b362d21b2e6622d01128a (diff) | |
download | bcm5719-llvm-ba91b89711c5dde1f52817792bed3efa5f54580b.tar.gz bcm5719-llvm-ba91b89711c5dde1f52817792bed3efa5f54580b.zip |
Yet more instantiation-location information. Fixes PR5336.
llvm-svn: 85516
Diffstat (limited to 'clang/test/SemaTemplate/template-id-expr.cpp')
-rw-r--r-- | clang/test/SemaTemplate/template-id-expr.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/template-id-expr.cpp b/clang/test/SemaTemplate/template-id-expr.cpp new file mode 100644 index 00000000000..a0cbe440849 --- /dev/null +++ b/clang/test/SemaTemplate/template-id-expr.cpp @@ -0,0 +1,14 @@ +// RUN: clang-cc -fsyntax-only -verify %s + +// PR5336 +template<typename FromCl> +struct isa_impl_cl { + template<class ToCl> + static void isa(const FromCl &Val) { } +}; + +template<class X, class Y> +void isa(const Y &Val) { return isa_impl_cl<Y>::template isa<X>(Val); } + +class Value; +void f0(const Value &Val) { isa<Value>(Val); } |