[llvm-bugs] [Bug 31370] New: Assertion failed: "Cannot get layout of forward declarations!"

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 14 06:44:23 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31370

            Bug ID: 31370
           Summary: Assertion failed: "Cannot get layout of forward
                    declarations!"
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: trass3r at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

typedef struct _IMAGE_RUNTIME_FUNCTION_ENTRY RUNTIME_FUNCTION,
PRUNTIME_FUNCTION;
PRUNTIME_FUNCTION
RtlLookupFunctionEntry(
);


$ clang.exe -cc1 -v -triple x86_64-pc-windows-msvc19.0.0 -emit-llvm test.cpp
clang -cc1 version 4.0.0 based upon LLVM 4.0.0svn-r289649 default target
x86_64-pc-windows-msvc
#include "..." search starts here:
End of search list.
Assertion failed: D && "Cannot get layout of forward declarations!", file
..\tools\clang\lib\AST\RecordLayoutBuilder.cpp, line 2933
0x0000000141643824 (0x0000000000000008 0x0000000000000000 0x0000000000151470
0x0000000000000000), clang::ASTContext::getASTRecordLayout() + 0x84 bytes(s),
tools\clang\lib\ast\recordlayoutbuilder.cpp, line 2934
0x00000001415F65B5 (0x00000000001518C8 0x0000000000163430 0x0000000000000008
0x0000000000000000), clang::ASTContext::getTypeInfoImpl() + 0x805 bytes(s),
tools\clang\lib\ast\astcontext.cpp, line 1865
0x00000001415F5B80 (0x0000000000165870 0x0000000000000000 0x000000000015C580
0x000000000015C4E8), clang::ASTContext::getTypeInfo() + 0xB0 bytes(s),
tools\clang\lib\ast\astcontext.cpp, line 1604
0x00000001415F5874 (0x000000000015C580 0x0000000000B2C8F0 0x000000000015C4E8
0x0000000000146C98), clang::ASTContext::getTypeAlignInChars() + 0x34 bytes(s),
tools\clang\lib\ast\astcontext.cpp, line 1977 + 0x15 byte(s)
0x0000000140425B5C (0x0000000000000000 0x0000000002A89FD0 0x0000000000147DD0
0x0000000000000000), `anonymous
namespace'::MicrosoftCXXABI::classifyReturnType() + 0xAC bytes(s),
tools\clang\lib\codegen\microsoftcxxabi.cpp,
line 1101
0x0000000140395CD7 (0x0000000000000000 0x0000000000B2C9A8 0x0000000000B2C830
0x0000000000000000), `anonymous namespace'::WinX86_64ABIInfo::computeInfo() +
0x57 bytes(s), tools\clang\lib\codegen\targetinfo.cpp, line 3771 + 0xA byte(s)
0x0000000140376B0F (0x000000000015C580 0x000000000015C580 0x0000000000B2C900
0x000000000015C6F0), clang::CodeGen::CodeGenTypes::arrangeLLVMFunctionInfo() +
0x2FF bytes(s), tools\clang\lib\codegen\cgcall.cpp, line 711
0x00000001403767D2 (0x000000000015C6F0 0x0000000100000001 0x00000000FFFFFFFF
0x000000000015C6F0), arrangeLLVMFunctionInfo() + 0x252 bytes(s),
tools\clang\lib\codegen\cgcall.cpp, line 153 + 0x8A byte(s)
0x0000000140375FAE (0x000000000015C6F0 0x000000000015C6F0 0x0000000000000134
0x0000000000000066), clang::CodeGen::CodeGenTypes::arrangeFreeFunctionType() +
0x3E bytes(s), tools\clang\lib\codegen\cgcall.cpp, line 165 + 0x5 byte(s)
0x00000001403763E4 (0x0000000000164778 0x0000000000000001 0x000000000015C6F0
0x0000000000000000), clang::CodeGen::CodeGenTypes::arrangeFunctionDeclaration()
+ 0x404 bytes(s), tools\clang\lib\codegen\cgcall.cpp, line 404 + 0x53 byte(s)
0x000000014037656F (0x0000000000000001 0x0000000002A89FD0 0x0000000002A89FD0
0x0000000002A89FD0), clang::CodeGen::CodeGenTypes::arrangeGlobalDeclaration() +
0x15F bytes(s), tools\clang\lib\codegen\cgcall.cpp, line 471 + 0xB byte(s)
0x0000000140310290 (0x0000000000000001 0x0000000002A89FD0 0x0000000000000000
0x0000000000B2D268), clang::CodeGen::CodeGenModule::EmitGlobal() + 0x260
bytes(s), tools\clang\lib\codegen\codegenmodule.cpp, line 1600
0x0000000140312F94 (0x0000000000000001 0x0000000002A89FD0 0x0000000002A89FD0
0x0000000140C9C8C0), clang::CodeGen::CodeGenModule::EmitTopLevelDecl() + 0xE4
bytes(s), tools\clang\lib\codegen\codegenmodule.cpp, line 3679
0x000000014195EC5F (0x0000000002A89FD0 0x0000000002A89FD0 0x00000000001111B0
0x0000000000000000), `anonymous
namespace'::CodeGeneratorImpl::HandleTopLevelDecl() + 0x12F bytes(s),
tools\clang\lib\codegen\modulebuilder.cpp, line 148 + 0xF byte(s)
0x000000014195CA85 (0x0000000000163DB0 0x0000000002A89FD0 0x0000000000000000
0x000000000016DF20), clang::BackendConsumer::HandleTopLevelDecl() + 0xF5
bytes(s), tools\clang\lib\codegen\codegenaction.cpp, line 133
0x0000000140C956B6 (0x0000000000B2E300 0x0000000000000000 0x00000000000F8370
0x0000000002A89FD0), clang::ParseAST()

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161214/2fa1f6df/attachment-0001.html>


More information about the llvm-bugs mailing list