diff options
Diffstat (limited to 'test/SemaTemplate/instantiate-deeply.cpp')
-rw-r--r-- | test/SemaTemplate/instantiate-deeply.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/test/SemaTemplate/instantiate-deeply.cpp b/test/SemaTemplate/instantiate-deeply.cpp index 27e430b..7f15bf1 100644 --- a/test/SemaTemplate/instantiate-deeply.cpp +++ b/test/SemaTemplate/instantiate-deeply.cpp @@ -1,5 +1,4 @@ // RUN: clang-cc -fsyntax-only -Wall -verify %s - template<typename a> struct A { template <typename b> struct B { template <typename c> struct C { @@ -20,3 +19,18 @@ template<typename a> struct A { }; A<int>::B<int>::C<int>::D<int>::E<int> global; + +// PR5352 +template <typename T> +class Foo { +public: + Foo() {} + + struct Bar { + T value; + }; + + Bar u; +}; + +template class Foo<int>; |