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: unassignedclangb...@nondot.org
          Reporter: antosh...@gmail.com
                CC: llvm-bugs@lists.llvm.org, mclow.li...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to