Skip to content

operator delete[] leads to "index out of range" crash when using Microsoft ABI #12705

Closed
@timurrrr

Description

@timurrrr
Bugzilla Link 12333
Resolution FIXED
Resolved on Mar 19, 2014 03:27
Version trunk
OS Windows NT
Blocks llvm/llvm-bugzilla-archive#12477
CC @DougGregor,@ramosian-glider,@rjmccall

Extended Description

$ 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)

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillac++

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions