summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/cxx-templates.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-16 00:48:59 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-16 00:48:59 +0000
commit83a6e3bfabb392cfa636d921b19db48ef45b69d0 (patch)
tree71fe8f6ae96610460251840b60d327763441490a /clang/test/PCH/cxx-templates.cpp
parent0062ba649478e2052fa6ef6a141f44cbf208c56e (diff)
downloadbcm5719-llvm-83a6e3bfabb392cfa636d921b19db48ef45b69d0.tar.gz
bcm5719-llvm-83a6e3bfabb392cfa636d921b19db48ef45b69d0.zip
[PCH] Deserializing the DeclContext of a template parameter is not safe
until recursive loading is finished. Otherwise we may end up with a template trying to deserialize a template parameter that is in the process of getting loaded. rdar://13135282 llvm-svn: 175329
Diffstat (limited to 'clang/test/PCH/cxx-templates.cpp')
-rw-r--r--clang/test/PCH/cxx-templates.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/PCH/cxx-templates.cpp b/clang/test/PCH/cxx-templates.cpp
index d27e9ca93c4..ddebae4df24 100644
--- a/clang/test/PCH/cxx-templates.cpp
+++ b/clang/test/PCH/cxx-templates.cpp
@@ -79,3 +79,9 @@ namespace TestNestedExpansion {
Int &g(Int, int, double);
Int &test = NestedExpansion<char, char, char>().f(0, 1, 2, Int(3), 4, 5.0);
}
+
+namespace rdar13135282 {
+ void test() {
+ __mt_alloc<> mt = __mt_alloc<>();
+ }
+}
OpenPOWER on IntegriCloud