[llvm-bugs] [Bug 39363] Cannot construct unique_ptr with pointer to incomplete type

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Oct 20 16:39:30 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=39363

Eric Fiselier <eric at efcs.ca> changed:

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

--- Comment #2 from Eric Fiselier <eric at efcs.ca> ---
libc++ supports this use case, we have tests for it, and it works.

The godbolt link you provided is using libstdc++, not libc++. Adding
-stdlib=libc++ makes the example compile as expected
(https://godbolt.org/z/pHpTlH)

-- 
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/20181020/bb4bcdf2/attachment.html>


More information about the llvm-bugs mailing list