diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-10-23 23:25:44 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-10-23 23:25:44 +0000 |
commit | 33642df30088f2ddb0b22c609523ab8df9dff595 (patch) | |
tree | d595a8468c08005403424fa85d6cab7da3c17e22 /test/SemaTemplate/nested-template.cpp | |
parent | e27ec8ad56dbf1efb2de004b90fbbb86f740e3f1 (diff) |
Implement template instantiation for non-type template
parameters. Fixes PR5103.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/nested-template.cpp')
-rw-r--r-- | test/SemaTemplate/nested-template.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaTemplate/nested-template.cpp b/test/SemaTemplate/nested-template.cpp index 5ee2c99540..4d948184ce 100644 --- a/test/SemaTemplate/nested-template.cpp +++ b/test/SemaTemplate/nested-template.cpp @@ -101,3 +101,10 @@ struct X0<T*> { template<typename U> void f(U u = T()) { } }; + +// PR5103 +template<typename> +struct X1 { + template<typename, bool = false> struct B { }; +}; +template struct X1<int>::B<bool>; |