[LLVMbugs] [Bug 19779] no zero initialization in value initialization
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon May 19 06:39:41 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19779
Sergey Zubkov <cubbimew at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |cubbimew at gmail.com
Resolution|INVALID |---
--- Comment #2 from Sergey Zubkov <cubbimew at gmail.com> ---
The comment above is incorrect: the syntax B{} does not perform aggregate
initialization: it performs value-initialization of B, per C++11's 8.5.4/3:
"If the initializer list has no elements and T is a class type with a default
constructor, the object is value-initialized."
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140519/c6d619f1/attachment.html>
More information about the llvm-bugs
mailing list