[LLVMbugs] [Bug 21159] clang 3.5: error: chosen constructor is explicit in copy-initialization

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Oct 5 12:58:46 PDT 2014


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Per DR1070, omitted elements in aggregate initialization are
copy-list-initialized from {}:

  http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1070

Copy-list-initialization of dumb_ptr is ill-formed. (This wording is all in
n3337.)

Per DR1301, initialization of an aggregate from a braced-init-list always
performs aggregate initialization, even if the list is empty:

  http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1301

-- 
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/20141005/7eee56b9/attachment.html>


More information about the llvm-bugs mailing list