[LLVMbugs] [Bug 20520] New: std::list<>::remove_if() visits elements multiple times

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 3 02:43:29 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20520

            Bug ID: 20520
           Summary: std::list<>::remove_if() visits elements multiple
                    times
           Product: libc++
           Version: 3.4
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kamikaze at bsdforen.de
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

When calling std::list<>::remove_if() with a lambda for the condition (I did
not test without lambdas), it visits the list entry *following* a delete twice.

Demo code and a patch can be found with the respective FreeBSD bug report:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192303

-- 
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/20140803/eebf2cb4/attachment.html>


More information about the llvm-bugs mailing list