aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-expr-2.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-05-14 21:44:34 +0000
committerDouglas Gregor <dgregor@apple.com>2009-05-14 21:44:34 +0000
commit48dd19b19ddb9e105f8cf0bf6f0732ca4e6a385b (patch)
tree48beecdf0187053b9d18bb56cd95d8b8366d1ff1 /test/SemaTemplate/instantiate-expr-2.cpp
parent304376651e85a6f84055ffa0b42517f8631e7f6b (diff)
Introduce a stack of instantiation scopes that are used to store the mapping from variable declarations that occur within templates to their instantiated counterparts
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-expr-2.cpp')
-rw-r--r--test/SemaTemplate/instantiate-expr-2.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/SemaTemplate/instantiate-expr-2.cpp b/test/SemaTemplate/instantiate-expr-2.cpp
index ea1e0af21a..1832fd4ab7 100644
--- a/test/SemaTemplate/instantiate-expr-2.cpp
+++ b/test/SemaTemplate/instantiate-expr-2.cpp
@@ -120,8 +120,6 @@ namespace N7 {
typedef Cond<true, int, double>::Type Type;
}
-#if 0
-// FIXME: Unable to handle general declaration references at this point.
template<typename T, unsigned long N> struct IntegralConstant { };
template<typename T>
@@ -130,6 +128,5 @@ struct X0 {
};
void test_X0(X0<int> x, IntegralConstant<int, sizeof(int)> ic) {
- x.f(ic);
+ x.f(5, ic);
}
-#endif