From 01af97d3b23bded2b2b21af19bbc6e4cce49e5b3 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 2 May 2011 19:39:53 +0000 Subject: Vendor import of clang trunk r130700: http://llvm.org/svn/llvm-project/cfe/trunk@130700 --- test/SemaTemplate/dependent-template-recover.cpp | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'test/SemaTemplate/dependent-template-recover.cpp') diff --git a/test/SemaTemplate/dependent-template-recover.cpp b/test/SemaTemplate/dependent-template-recover.cpp index e91ffb52539c0..3c01f6586b016 100644 --- a/test/SemaTemplate/dependent-template-recover.cpp +++ b/test/SemaTemplate/dependent-template-recover.cpp @@ -16,3 +16,45 @@ struct X { (*t).f2<0>(); // expected-error{{expected expression}} } }; + +namespace PR9401 { + // From GCC PR c++/45558 + template + struct C + { + template + struct B + { + template + struct E + { + explicit E(const W &x) : w(x) {} + const W &w; + }; + }; + }; + + struct F; + template + struct D + { + D() {} + }; + + const D g; + template + struct A + { + template + struct B : C::template B + { + typedef typename C::template B V; + static const D > > a; + }; + }; + + template + template + const D::template B::template E > > + A::B::a = typename C::template B::template E >(g); +} -- cgit v1.2.3