[LLVMbugs] [Bug 12333] New: operator delete[] leads to "index out of range" crash when using Microsoft ABI
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Mar 23 02:50:32 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12333
Bug #: 12333
Summary: operator delete[] leads to "index out of range" crash
when using Microsoft ABI
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: timurrrr at google.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ clang++.exe
clang version 3.1 (trunk 152788)
Target: i686-pc-win32
Thread model: posix
$ more operator_delete_array.cpp
int main() {
char *ptr = 0;
delete [] ptr;
}
$ clang++.exe -Xclang -cxx-abi -Xclang microsoft operator_delete_array.cpp
Assertion failed: Idx < getNumArgs() && "Argument index out of range!", file
clang\include\clang/Basic/Diagnostic.h, line 994
clang++: error: clang frontend command failed with exit code 3 (use -v to see
invocation)
--
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