[LLVMbugs] [Bug 2214] New: Varargs Code Triggers Assertion

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Apr 9 09:42:24 PDT 2008


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: unassignedbugs at nondot.org
        ReportedBy: criswell at uiuc.edu
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list