aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-using-decl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-11-17 06:07:40 +0000
committerDouglas Gregor <dgregor@apple.com>2009-11-17 06:07:40 +0000
commit48c32a7e7c977f317dc1dc19524c2f54d29c7270 (patch)
treed3b108121edad415f92e99f9688a2e8f34123230 /test/SemaTemplate/instantiate-using-decl.cpp
parentb3375cba7938e01895bb504e7e48ad94a2e07dd1 (diff)
Implement template instantiation for using directives, which is dead simple.
Also, make the "don't know how to instantiate a particular kind of declaration" diagnostic nicer, so we don't have to trap Clang in a debugger to figure out what went wrong. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-using-decl.cpp')
-rw-r--r--test/SemaTemplate/instantiate-using-decl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-using-decl.cpp b/test/SemaTemplate/instantiate-using-decl.cpp
index fd9010fa4b..a1cf355c89 100644
--- a/test/SemaTemplate/instantiate-using-decl.cpp
+++ b/test/SemaTemplate/instantiate-using-decl.cpp
@@ -1,5 +1,7 @@
// RUN: clang-cc -fsyntax-only -verify %s
+namespace N { }
+
template<typename T>
struct A {
void f();
@@ -10,6 +12,7 @@ struct B : A<T> {
using A<T>::f;
void g() {
+ using namespace N;
f();
}
};