[llvm-bugs] [Bug 35119] New: std::set_union accesses an element after it has been moved out.
llvm-bugs at lists.llvm.org
Sun Oct 29 08:55:19 PDT 2017
Bug ID: 35119
Summary: std::set_union accesses an element after it has been
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: denis.yaroshevskij at gmail.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
std::set_union has this code:
*__result = *__first1;
if (!__comp(*__first1, *__first2))
It's not ok, since the assignment might have moved the value out.
Suggested fix and test: https://reviews.llvm.org/D39405
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs