[cfe-commits] r158288 - in /cfe/trunk: include/clang/AST/ include/clang/Basic/ include/clang/Sema/ lib/AST/ lib/CodeGen/ lib/Parse/ lib/Rewrite/ lib/Sema/ lib/Serialization/ test/PCH/ test/SemaTemplate/
David Blaikie
dblaikie at gmail.com
Mon Jun 11 09:24:12 PDT 2012
On Mon, Jun 11, 2012 at 8:54 AM, Jordan Rose <jordan_rose at apple.com> wrote:
> I don't have the standard in front of me, but can class members be initialized with parens?
No, it's brace-or-equal-initializer, not parens.
- David
>
>> int x(3);
>
>
> If so, should InClassInitStyle be merged with VarDecl::InitializationStyle? (And CXXNewExpr::InitializationStyle?) They're all basically the same enum.
>
> Jordan
>
>
> On Jun 9, 2012, at 8:12 PM, Richard Smith wrote:
>
>> Author: rsmith
>> Date: Sat Jun 9 22:12:00 2012
>> New Revision: 158288
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=158288&view=rev
>> Log:
>> PR13064: Store whether an in-class initializer uses direct or copy
>> initialization, and use that information to produce the right kind of
>> initialization during template instantiation.
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list