From: Douglas Gregor Date: Wed, 2 Sep 2009 13:07:20 +0000 (+0000) Subject: Add a few more typename-specifier tests that involve simple-template-ids in the neste... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae4406744024feee732cb8742572377e9646cd5b;p=clang Add a few more typename-specifier tests that involve simple-template-ids in the nested-name-specifier git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80784 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaTemplate/typename-specifier-4.cpp b/test/SemaTemplate/typename-specifier-4.cpp index 2b1517e40c..c7484c19fc 100644 --- a/test/SemaTemplate/typename-specifier-4.cpp +++ b/test/SemaTemplate/typename-specifier-4.cpp @@ -43,6 +43,17 @@ struct swap_and_apply2 { int a2[is_same::apply::type, pair >::value? 1 : -1]; +template +struct swap_and_apply2b { + template + struct apply { + typedef typename MetaFun::template apply::type type; + }; +}; + +int a3[is_same::apply::type, + pair >::value? 1 : -1]; + template struct X0 { template @@ -53,4 +64,7 @@ struct X0 { void f1(X0::Inner); // expected-note{{here}} void f1(typename X0::template Inner); // expected-error{{redecl}} + + void f2(typename X0::Inner::type); // expected-note{{here}} + void f2(typename X0::template Inner::type); // expected-error{{redecl}} };