[llvm-bugs] [Bug 25582] New: std::deque uses unique_ptr<pointer> instead of unique_ptr<value_type>
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 20 02:19:28 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25582
Bug ID: 25582
Summary: std::deque uses unique_ptr<pointer> instead of
unique_ptr<value_type>
Product: libc++
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: antoshkka at gmail.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Classification: Unclassified
There are two places in deque file that contain the following line:
unique_ptr<pointer, _Dp> __hold
This line contains an error, that is seen when using libc++ in debug mode of
GCC.
Fix for it would be to replace `pointer` with `value_type`:
unique_ptr<value_type, _Dp> __hold
Lower in code there is a `__buf.push_back(__hold.get());` call, and `__buf`
expects a `pointer` type, not `pointer*`.
--
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/20151120/c702b6d9/attachment.html>
More information about the llvm-bugs
mailing list