[LLVMbugs] [Bug 15735] list-initialization of array new-expression requires declared default constructor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 15 17:14:48 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15735

David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dblaikie at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from David Blaikie <dblaikie at gmail.com> ---
I believe this is well defined/required. If during construction of any of those
array elements, an exception is thrown (the fact that the body of the ctor is
visible & not throwing isn't considered) then the previous fully constructed
elements need to be destroyed. So the destructor must be available for any such
expression.

-- 
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/20130416/69f1fc33/attachment.html>


More information about the llvm-bugs mailing list