[llvm-bugs] [Bug 24403] Erase a key which is not exists in unordered_map(in c++11) can compile will.

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Aug 8 18:47:23 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24403

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Your code has undefined behavior because you're using an iterator into the list
after you erased the corresponding element (via pop_back).

-- 
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/20150809/9ae709f6/attachment.html>


More information about the llvm-bugs mailing list