From d0d7bf32e3274d162d442579d46fbaaa9125a54e Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 25 Jan 2011 18:11:52 +0000 Subject: [PATCH] Add test for PR8629 llvm-svn: 124204 --- .../instantiate-template-template-parm.cpp | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/clang/test/SemaTemplate/instantiate-template-template-parm.cpp b/clang/test/SemaTemplate/instantiate-template-template-parm.cpp index 1e3346998fa2..a70c7e8b081a 100644 --- a/clang/test/SemaTemplate/instantiate-template-template-parm.cpp +++ b/clang/test/SemaTemplate/instantiate-template-template-parm.cpp @@ -59,3 +59,39 @@ template struct lt { }; Comp c0; + +namespace PR8629 { + template class TT> struct X0 + { + static void apply(); + }; + template struct Type { }; + + template struct X1 + { + template struct Inner; + + template void g() + { + typedef Inner Init; + X0::apply(); + } + template void f () + { + g >(); + } + }; + template template struct X1::Inner + { + template struct VeryInner { + }; + }; + struct X1Container + { + X1Container() + { + simplex_.f<0>(); + } + X1 simplex_; + }; +}