too). When instantiating a direct-initializer, if we find it has zero
arguments, produce an empty ParenListExpr rather than returning a null
expression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170490
91177308-0d34-0410-b5e6-
96231b3b80d8
Construct->getLocEnd(),
Construct->getType());
- // Treat an empty initializer like none.
- if (NewArgs.empty())
- return SemaRef.Owned((Expr*)0);
-
// Build a ParenListExpr to represent anything else.
SourceRange Parens = Construct->getParenRange();
return getDerived().RebuildParenListExpr(Parens.getBegin(), NewArgs,
BB() : AA<T>(1) {}
};
BB<int> x;
+
+struct X {
+ X();
+};
+template<typename T>
+struct Y {
+ Y() : x() {}
+ X x;
+};
+Y<int> y;