[LLVMbugs] [Bug 10912] New: Assertion `FieldNo < FieldCount && "Invalid Field No"'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 11 16:26:58 PDT 2011


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

           Summary: Assertion `FieldNo < FieldCount && "Invalid Field No"'
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: joerg at NetBSD.org
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7253)
 --> (http://llvm.org/bugs/attachment.cgi?id=7253)
Reduced test case from Qt4

Backtrace:


6  clang           0x00000000013942a0
clang::ASTRecordLayout::getFieldOffset(unsigned int) const + 58
7  clang           0x0000000001d4fab6
8  clang           0x0000000001d50251
9  clang           0x0000000001d505a8
10 clang           0x0000000001d52af9
11 clang           0x0000000001d5232b
12 clang           0x0000000001d522e7
13 clang           0x0000000001d52e47
14 clang           0x0000000001d55bf0
clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const + 458
15 clang           0x0000000001472441
16 clang           0x0000000001474cd7
clang::CodeGen::CodeGenTypes::ComputeRecordLayout(clang::RecordDecl const*,
llvm::StructType*) + 83
17 clang           0x000000000137b84c
clang::CodeGen::CodeGenTypes::ConvertRecordDeclType(clang::RecordDecl const*) +
572
18 clang           0x000000000137aa8c
clang::CodeGen::CodeGenTypes::ConvertType(clang::QualType) + 166
19 clang           0x000000000137a2a6
clang::CodeGen::CodeGenTypes::ConvertTypeForMem(clang::QualType) + 36
20 clang           0x000000000137adf7
clang::CodeGen::CodeGenTypes::ConvertType(clang::QualType) + 1041
21 clang           0x000000000137a2a6
clang::CodeGen::CodeGenTypes::ConvertTypeForMem(clang::QualType) + 36
22 clang           0x00000000014a9ae1
clang::CodeGen::CodeGenFunction::ConvertTypeForMem(clang::QualType) + 47
23 clang           0x00000000013d2140
clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca(clang::VarDecl const&) + 814
24 clang           0x00000000013d1de9
clang::CodeGen::CodeGenFunction::EmitAutoVarDecl(clang::VarDecl const&) + 39
25 clang           0x00000000013cfacb
clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) + 135
26 clang           0x00000000013cf9f1
clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) + 189
27 clang           0x000000000147bd62
clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 140
28 clang           0x0000000001479658
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 282
29 clang           0x0000000001479123
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 75
30 clang           0x000000000147985e
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 306
31 clang           0x0000000001479617
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 217
32 clang           0x0000000001479123
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 75
33 clang           0x00000000014aadd2
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&)
+ 154
34 clang           0x00000000014ab180
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 664
35 clang           0x0000000001362819
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 917
36 clang           0x0000000001360459
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 503
37 clang           0x00000000013600cb
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 603
38 clang           0x000000000136580a
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 310
39 clang           0x000000000135a577
40 clang           0x0000000001359986
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 158
41 clang           0x00000000014cc5fc clang::ParseAST(clang::Sema&, bool) + 436
42 clang           0x0000000001202083 clang::ASTFrontendAction::ExecuteAction()
+ 265
43 clang           0x0000000001358fdf clang::CodeGenAction::ExecuteAction() +
957
44 clang           0x0000000001201cdd clang::FrontendAction::Execute() + 325
45 clang           0x00000000011e6dbc
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 740
46 clang           0x00000000011b9a7d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 969
47 clang           0x00000000011aa63a cc1_main(char const**, char const**, char
const*, void*) + 978
48 clang           0x00000000011b501c main + 496

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