diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-12-21 08:13:35 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-12-21 08:13:35 +0000 |
commit | 5cf1589db395371975bd3315b9126eb5c9be6701 (patch) | |
tree | 7ec7afbb9b9cf650428606adcd61ca32a3444206 /test/SemaTemplate | |
parent | 9d0840141a0922e2d8b1d322f21ef51803ede23d (diff) |
Fix regression in r170489: when instantiating a direct initializer which is a
CXXScalarValueInitExpr (or an ImplicitValueInitExpr), strip it back down to an
empty pair of parentheses so that the initialization code can tell that we're
performing value-initialization.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate')
-rw-r--r-- | test/SemaTemplate/instantiate-member-initializers.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-member-initializers.cpp b/test/SemaTemplate/instantiate-member-initializers.cpp index 297ae917bb..63862063ac 100644 --- a/test/SemaTemplate/instantiate-member-initializers.cpp +++ b/test/SemaTemplate/instantiate-member-initializers.cpp @@ -35,3 +35,9 @@ struct Y { X x; }; Y<int> y; + +template<typename T> struct Array { + int a[3]; + Array() : a() {} +}; +Array<int> s; |