[LLVMbugs] [Bug 12147] Unhelpful error message for trying to use an explicit constructor with uniform initialization

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jun 29 21:28:17 PDT 2013


Seth <seth.cantrell at gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Seth <seth.cantrell at gmail.com> ---
fixed sometime before e103979ceac63c98873f3307ee897eab559356a0, r185264

clang's output is now:


main.cpp:1:26: error: chosen constructor is explicit in copy-initialization
    std::unique_ptr<int> j = {new int(0)};
                         ^   ~~~~~~~~~~~~
/Users/socantre/Programming/libcxx/include/memory:2552:40: note: constructor
declared here
    _LIBCPP_INLINE_VISIBILITY explicit unique_ptr(pointer __p) _NOEXCEPT
1 error generated.

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/20130630/f5a3d7e8/attachment.html>

More information about the llvm-bugs mailing list