[LLVMbugs] [Bug 7564] New: Assertion `... && "Size mismatch!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 5 01:38:22 PDT 2010


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

           Summary: Assertion `... && "Size mismatch!"' failed.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jay.foad at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5163)
 --> (http://llvm.org/bugs/attachment.cgi?id=5163)
obfuscated test case

On the attached source file I get:

$ /home/jay/clang/objdir/Debug/bin/clang -cc1 -w -S obf.c
clang: /home/jay/svn/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp:401:
static
llvm::Constant*<unnamed>::ConstStructBuilder::BuildStruct(clang::CodeGen::CodeGenModule&,
clang::CodeGen::CodeGenFunction*, clang::InitListExpr*): Assertion
`llvm::RoundUpToAlignment(Builder.NextFieldOffsetInBytes,
Builder.getAlignment(Result)) == Builder.getSizeInBytes(Result) && "Size
mismatch!"' failed.
...
0.      Program arguments: /home/jay/clang/objdir/Debug/bin/clang -cc1 -w -S
obf.c 
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      obf.c:795:13: Generating code for declaration 'ABHFBF'
4.      obf.c:796:2: 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