[LLVMbugs] [Bug 3247] New: Assertion in VLA codegen with sizeof+cast

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Dec 20 20:59:39 PST 2008


http://llvm.org/bugs/show_bug.cgi?id=3247

           Summary: Assertion in VLA codegen with sizeof+cast
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:
int a() {return sizeof(*(char(*)[printf("asdf\n")])0);}

Assertion:
clang: /home/eli/llvm/tools/clang/lib/CodeGen/CodeGenFunction.cpp:419:
llvm::Value* clang::CodeGen::CodeGenFunction::GetVLASize(const
clang::VariableArrayType*): Assertion `SizeEntry && "Did not emit size for
type"' failed.

I don't remember completely what the rules are here...


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