commit | 323c310efa0abd7a786b0303501186b5f33eb8d7 | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Tue Dec 22 22:26:37 2009 +0000 |
committer | John McCall <rjmccall@apple.com> | Tue Dec 22 22:26:37 2009 +0000 |
tree | 0e26bd9e87409bb7fe4ca1ecdc182bcd3ac6f3a3 | |
parent | 90f9382b3e97afa55e6aaaa4ab31c7473a8c7bb9 [diff] [blame] |
Add using shadow decls to the "instantiated locals" map, fixing PR5847. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91928 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/instantiate-using-decl.cpp b/test/SemaTemplate/instantiate-using-decl.cpp index 6bbfe65..a4394aa 100644 --- a/test/SemaTemplate/instantiate-using-decl.cpp +++ b/test/SemaTemplate/instantiate-using-decl.cpp
@@ -47,3 +47,17 @@ Knot().Visit((struct Object3*) 0); // expected-error {{no matching member function for call}} } } + +// PR5847 +namespace test2 { + namespace ns { + void foo(); + } + + template <class T> void bar(T* ptr) { + using ns::foo; + foo(); + } + + template void bar(char *); +}