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

           Summary: BitVector's copy assignment triggers debug assert in
                    MSVC2010
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P5
         Component: Support Libraries
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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:

include/llvm/ADT/BitVector.h:332

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to