diff options
| author | John McCall <rjmccall@apple.com> | 2011-02-14 20:37:25 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2011-02-14 20:37:25 +0000 |
| commit | 2957e3ef4990b0d63ebe1b18af52c83407da9c1c (patch) | |
| tree | df52aa4ebf7fc8f6d8398f407e24385f88ec6dac /clang/test | |
| parent | c9987fbbfe1b85f5a97ff7e4806dcb4b21be4e55 (diff) | |
| download | bcm5719-llvm-2957e3ef4990b0d63ebe1b18af52c83407da9c1c.tar.gz bcm5719-llvm-2957e3ef4990b0d63ebe1b18af52c83407da9c1c.zip | |
Change the context correctly when instantiating a static data member definition.
llvm-svn: 125517
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CXX/class.access/p4.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CXX/class.access/p4.cpp b/clang/test/CXX/class.access/p4.cpp index e4e9ff0496c..a8a2ef928e5 100644 --- a/clang/test/CXX/class.access/p4.cpp +++ b/clang/test/CXX/class.access/p4.cpp @@ -498,3 +498,13 @@ namespace rdar8876150 { 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>; +} |

