[llvm-bugs] [Bug 38704] New: libomptarget/src/omptarget.cpp:440: bad erase ?
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Aug 25 13:04:53 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38704
Bug ID: 38704
Summary: libomptarget/src/omptarget.cpp:440: bad erase ?
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dcb314 at hotmail.com
CC: llvm-bugs at lists.llvm.org
openmp-7.0.0rc1.src/libomptarget/src/omptarget.cpp:419] ->
openmp-7.0.0rc1.src/libomptarget/src/omptarget.cpp:440]: (error) Iterator 'it'
used after element has been erased.
Source code is
Device.ShadowPtrMap.erase(it);
maybe better code
it = Device.ShadowPtrMap.erase(it);
--
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/20180825/91d1598d/attachment.html>
More information about the llvm-bugs
mailing list