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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to