<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Assertion failed: "Cannot get layout of forward declarations!""
   href="https://llvm.org/bugs/show_bug.cgi?id=31370">31370</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed: "Cannot get layout of forward declarations!"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>trass3r@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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()</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>