From 9f0f3cd94ac992bc6714b49ffe5272521ce12d77 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124204 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../instantiate-template-template-parm.cpp | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/test/SemaTemplate/instantiate-template-template-parm.cpp b/test/SemaTemplate/instantiate-template-template-parm.cpp index 1e3346998f..a70c7e8b08 100644 --- a/test/SemaTemplate/instantiate-template-template-parm.cpp +++ b/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_; + }; +} -- 2.50.1