[LLVMbugs] [Bug 6504] New: BitVector's copy assignment triggers debug assert in MSVC2010

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 4 23:59:30 PST 2010


           Summary: BitVector's copy assignment triggers debug assert in
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P5
         Component: Support Libraries
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ahmedcharles at gmail.com
                CC: llvmbugs at cs.uiuc.edu

MSVC2010 is a bit too aggressive in checking iterators (and pointers) for
validity when performing various algorithms in debug mode. This includes
verifying that output iterators that are pointers are not null. In the case of
std::copy it is conformant to pass a null pointer as an output iterator as long
as there are no elements to copy. However, I'd recommend changing this so that
std::copy is only called when there are elements to copy.

The relevant line is:


Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list