commit | 2957e3ef4990b0d63ebe1b18af52c83407da9c1c | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Mon Feb 14 20:37:25 2011 +0000 |
committer | John McCall <rjmccall@apple.com> | Mon Feb 14 20:37:25 2011 +0000 |
tree | df52aa4ebf7fc8f6d8398f407e24385f88ec6dac | |
parent | c9987fbbfe1b85f5a97ff7e4806dcb4b21be4e55 [diff] [blame] |
Change the context correctly when instantiating a static data member definition. llvm-svn: 125517
diff --git a/clang/test/CXX/class.access/p4.cpp b/clang/test/CXX/class.access/p4.cpp index e4e9ff0..a8a2ef9 100644 --- a/clang/test/CXX/class.access/p4.cpp +++ b/clang/test/CXX/class.access/p4.cpp
@@ -498,3 +498,13 @@ return !b; } } + +namespace test23 { + template <typename T> class A { + A(); + static A instance; + }; + + template <typename T> A<T> A<T>::instance; + template class A<int>; +}