http://llvm.org/bugs/show_bug.cgi?id=2214
Summary: Varargs Code Triggers Assertion
Product: tools
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: llvm-g++
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
Created an attachment (id=1583)
--> (http://llvm.org/bugs/attachment.cgi?id=1583)
Preprocessed source code that triggers assertion
I get the following assertion when compiling the attached code with llvm-g++ on
Darwin 9.2.0 on PowerPC:
/Users/criswell/box/ppc/llvm-gcc4/bin/llvm-g++ -emit-llvm -S test.i
/Users/criswell/src/llvm22/lib/VMCore/Instructions.cpp:290: failed assertion
`(FTy->getNumParams() == 1 || (FTy->isVarArg() && FTy->getNumParams() == 0)) &&
"Calling a function with bad signature"'
test.cpp: In function 'void funccheck(unsigned int, void*, void*, ...)':
test.cpp:17: internal compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs> for instructions.
The test case is attached.
--
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