[LLVMbugs] [Bug 6641] New: clang++ crash: "Calling a function with a bad signature!"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Mar 17 14:25:48 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6641
Summary: clang++ crash: "Calling a function with a bad
signature!"
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ori at avtalion.name
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following code crashes clang++:
struct Foo {
Foo() { }
};
void bar() {
new Foo[1][1];
}
$ clang++ -c file.cpp
clang: Instructions.cpp:311: void llvm::CallInst::init(llvm::Value*,
llvm::Value* const*, unsigned int): Assertion `(i >= FTy->getNumParams() ||
FTy->getParamType(i) == Params[i]->getType()) && "Calling a function with a bad
signature!"' failed.
Stack dump:
0. Program arguments: clang -cc1 -triple x86_64-unknown-linux-gnu -S
-disable-free -main-file-name file.cpp -mrelocation-model static
-mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64
-resource-dir /home/ori/devel/llvm/Debug/lib/clang/1.1 -fmessage-length 143
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-PjVvBb.s -x c++ file.cpp
1. <eof> parser at end of file
2. file.cpp:5:6: LLVM IR generation of declaration 'bar'
3. file.cpp:5:6: Generating code for declaration 'bar'
4. file.cpp:5:12: LLVM IR generation of compound statement ('{}')
--
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