https://bugs.llvm.org/show_bug.cgi?id=48439
Bug ID: 48439
Summary: Allocator propagation broken for std::string move
assignment
Product: libc++
Version: 10.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Consider the case where
propagate on container copy assignment = true
propagate on container move assignment = false
and focus on move assignment.
Suppose that the (stateful) instances of the allocators are not equal to one
another.
In this case, __move_assign delegates to assign. As far as I can tell, this
delegates to copy assignment. However, the latter considers propagation on
container copy and not container move.
This gives the wrong outcome in the case described.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs