<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 --- - uint64_t clang::ItaniumVTableContext::getMethodVTableIndex(clang::GlobalDecl): Assertion `I != MethodVTableIndices.end() && "Did not find index!"' failed."
   href="https://llvm.org/bugs/show_bug.cgi?id=28740">28740</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>uint64_t clang::ItaniumVTableContext::getMethodVTableIndex(clang::GlobalDecl): Assertion `I != MethodVTableIndices.end() && "Did not find index!"' failed.
          </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>Linux
          </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>Modules
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This happened when building llvm self-hosted with modules using libstdc++.

The invocation that caused it is:
cd /home/biancacr/clang_build_/buildmodules/lib/CodeGen &&
/home/biancacr/clang_build_/inst/bin/clang++   -DGTEST_HAS_RTTI=0 -D_DEBUG
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -I/home/biancacr/clang_build_/buildmodules/lib/CodeGen
-I/home/biancacr/clang_build_/src/lib/CodeGen
-I/home/biancacr/clang_build_/buildmodules/include
-I/home/biancacr/clang_build_/src/include  -stdlib=libstdc++ -fPIC
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long
-Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
-Werror=date-time -std=c++11 -fmodules -fmodules-cache-path=module.cache
-Xclang -fmodules-local-submodule-visibility -g    -fno-exceptions -fno-rtti -o
CMakeFiles/LLVMCodeGen.dir/RegAllocPBQP.cpp.o -c
/home/biancacr/clang_build_/src/lib/CodeGen/RegAllocPBQP.cpp

and the stack trace is:
clang-3.9:
/home/biancacr/clang_build_/src/tools/clang/lib/AST/VTableBuilder.cpp:2251:
uint64_t clang::ItaniumVTableContext::getMethodVTableIndex(clang::GlobalDecl):
Assertion `I != MethodVTableIndices.end() && "Did not find index!"' failed.
#0 0x00000000013f1d78 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x13f1d78)
#1 0x00000000013efd4e llvm::sys::RunSignalHandlers()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x13efd4e)
#2 0x00000000013efec4 SignalHandler(int)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x13efec4)
#3 0x00007f180aedfd10 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10d10)
#4 0x00007f1809cca1c7 gsignal
/build/glibc-qbmteM/glibc-2.21/signal/../sysdeps/unix/sysv/linux/raise.c:55:0
#5 0x00007f1809ccbe2a abort /build/glibc-qbmteM/glibc-2.21/stdlib/abort.c:91:0
#6 0x00007f1809cc30bd __assert_fail_base
/build/glibc-qbmteM/glibc-2.21/assert/assert.c:92:0
#7 0x00007f1809cc3172 (/lib/x86_64-linux-gnu/libc.so.6+0x2e172)
#8 0x0000000002b18058
clang::ItaniumVTableContext::getMethodVTableIndex(clang::GlobalDecl)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x2b18058)
#9 0x000000000156f840
clang::CodeGen::CGDebugInfo::CreateCXXMemberFunction(clang::CXXMethodDecl
const*, llvm::DIFile*, llvm::DIType*)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x156f840)
#10 0x000000000156fb1e
clang::CodeGen::CGDebugInfo::CollectCXXMemberFunctions(clang::CXXRecordDecl
const*, llvm::DIFile*, llvm::SmallVectorImpl<llvm::Metadata*>&, llvm::DIType*)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x156fb1e)
#11 0x0000000001572e5d
clang::CodeGen::CGDebugInfo::CreateTypeDefinition(clang::RecordType const*)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x1572e5d)
#12 0x0000000001573163
clang::CodeGen::CGDebugInfo::completeClassData(clang::RecordDecl const*)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x1573163)
#13 0x00000000017965b4
clang::CodeGen::CodeGenVTables::GenerateClassData(clang::CXXRecordDecl const*)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x17965b4)
#14 0x000000000179676e clang::CodeGen::CodeGenModule::EmitDeferredVTables()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x179676e)
#15 0x00000000015fbf66 clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fbf66)
#16 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#17 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#18 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#19 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#20 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#21 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#22 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#23 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#24 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#25 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#26 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#27 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#28 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#29 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#30 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#31 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#32 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#33 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#34 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#35 0x00000000015fc08d clang::CodeGen::CodeGenModule::EmitDeferred()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc08d)
#36 0x00000000015fc1e4 clang::CodeGen::CodeGenModule::Release()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x15fc1e4)
#37 0x0000000001b95287 (anonymous
namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x1b95287)
#38 0x0000000001b90697
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x1b90697)
#39 0x0000000001f1a24d clang::ParseAST(clang::Sema&, bool, bool)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x1f1a24d)
#40 0x0000000001b90c1e clang::CodeGenAction::ExecuteAction()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x1b90c1e)
#41 0x0000000001897f4e clang::FrontendAction::Execute()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x1897f4e)
#42 0x000000000186d056
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x186d056)
#43 0x0000000001925fc2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x1925fc2)
#44 0x00000000009cbec0 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/biancacr/clang_build_/inst/bin/clang-3.9+0x9cbec0)
#45 0x000000000099dd8a main
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x99dd8a)
#46 0x00007f1809cb5ac0 __libc_start_main
/build/glibc-qbmteM/glibc-2.21/csu/libc-start.c:323:0
#47 0x00000000009c7ef9 _start
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x9c7ef9)
Stack dump:</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>