aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-using-decl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-29 17:58:28 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-29 17:58:28 +0000
commit1b398205267ea69f35230eea50e0225db22ebb7e (patch)
tree9da998f2b8883aeebc9430715c850418c689e370 /test/SemaTemplate/instantiate-using-decl.cpp
parent640cf37c9432031412a9d3b8c2abcdff4f7f0e97 (diff)
Fix handling of dependent nested namespace specifiers in UsingDecls
during template instantiation, from Martin Vejnar! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-using-decl.cpp')
-rw-r--r--test/SemaTemplate/instantiate-using-decl.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-using-decl.cpp b/test/SemaTemplate/instantiate-using-decl.cpp
index 257904490d..1bfcb7a865 100644
--- a/test/SemaTemplate/instantiate-using-decl.cpp
+++ b/test/SemaTemplate/instantiate-using-decl.cpp
@@ -61,3 +61,22 @@ namespace test2 {
template void bar(char *);
}
+
+namespace test3 {
+ template <typename T> struct t {
+ struct s1 {
+ T f1() const;
+ };
+ struct s2 : s1 {
+ using s1::f1;
+ T f1() const;
+ };
+ };
+
+ void f2()
+ {
+ t<int>::s2 a;
+ t<int>::s2 const & b = a;
+ b.f1();
+ }
+}