diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-04 17:16:11 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-04 17:16:11 +0000 |
commit | 2de8f4149e4c3f1899d798a8c05b01f562cff176 (patch) | |
tree | d9b335fc2bbce80d6525951cf581d92fc372a55c /clang/test/SemaTemplate/instantiate-deeply.cpp | |
parent | 615ac67fb8a3261e7f37cc76f9b08f5d839e0960 (diff) | |
download | bcm5719-llvm-2de8f4149e4c3f1899d798a8c05b01f562cff176.tar.gz bcm5719-llvm-2de8f4149e4c3f1899d798a8c05b01f562cff176.zip |
Don't try to check the initialization of fields with dependent
types. Fixes PR5352.
Fariborz, please review.
llvm-svn: 86031
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-deeply.cpp')
-rw-r--r-- | clang/test/SemaTemplate/instantiate-deeply.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/instantiate-deeply.cpp b/clang/test/SemaTemplate/instantiate-deeply.cpp index 27e430be5cb..7f15bf1200f 100644 --- a/clang/test/SemaTemplate/instantiate-deeply.cpp +++ b/clang/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>; |