[LLVMbugs] [Bug 1094] NEW: SetVector iterators aren't really mutable

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jan 7 14:15:56 PST 2007


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

           Summary: SetVector iterators aren't really mutable
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca


Currently the implementation of SetVector::begin and end return iterators from
the contained vector. If someone used that iterator to modify the interior of
the vector (ala. "*MySetVector.begin() = value") then the SetVector's internal
set would be out of sync making further inserts fail or permit the insertion of
duplicates.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list