[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
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: 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:
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.
More information about the llvm-bugs
mailing list