[LLVMbugs] [Bug 17295] Calling make_shared<int> with a unique_ptr<int>&& should not compile

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Sep 21 14:57:54 PDT 2013


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

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

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

--- Comment #4 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Fixed in r191150.

libstdc++:

/usr/include/c++/4.6/bits/shared_ptr_base.h:410:16: error: no viable conversion
from
      'std::unique_ptr<int, std::default_delete<int> >' to 'int'
          ::new (__p) _Tp(std::forward<_Args>(__args)...);  // might throw
                      ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~

libc++:

/usr/include/c++/v1/memory:2104:15: error: no viable conversion from
'std::__1::unique_ptr<int, std::__1::default_delete<int> >' to 'int'
              __second_(_VSTD::forward<_Args2>(get<_I2>(__second_args))...)
              ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
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/20130921/ec4f1028/attachment.html>


More information about the llvm-bugs mailing list