https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111393
--- Comment #1 from AK <hiraditya at msn dot com> --- oot/d2fc9f48-c166-4a9e-9868-133a1db7af88/llvm-project/build# ninja clang check-clang [100/845] Building CXX object tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/GlobalModuleIndex.cpp.o FAILED: tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/GlobalModuleIndex.cpp.o /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LIBCPP_ENABLE_HARDENED_MODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/media/root/d2fc9f48-c166-4a9e-9868-133a1db7af88/llvm-project/build/tools/clang/lib/Serialization -I/media/root/d2fc9f48-c166-4a9e-9868-133a1db7af88/llvm-project/clang/lib/Serialization -I/media/root/d2fc9f48-c166-4a9e-9868-133a1db7af88/llvm-project/clang/include -I/media/root/d2fc9f48-c166-4a9e-9868-133a1db7af88/llvm-project/build/tools/clang/include -I/media/root/d2fc9f48-c166-4a9e-9868-133a1db7af88/llvm-project/build/include -I/media/root/d2fc9f48-c166-4a9e-9868-133a1db7af88/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/GlobalModuleIndex.cpp.o -MF tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/GlobalModuleIndex.cpp.o.d -o tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/GlobalModuleIndex.cpp.o -c /media/root/d2fc9f48-c166-4a9e-9868-133a1db7af88/llvm-project/clang/lib/Serialization/GlobalModuleIndex.cpp In file included from /media/root/d2fc9f48-c166-4a9e-9868-133a1db7af88/llvm-project/llvm/include/llvm/ADT/DenseMapInfo.h:20, from /media/root/d2fc9f48-c166-4a9e-9868-133a1db7af88/llvm-project/llvm/include/llvm/ADT/DenseMap.h:17, from /media/root/d2fc9f48-c166-4a9e-9868-133a1db7af88/llvm-project/clang/include/clang/Serialization/GlobalModuleIndex.h:18, from /media/root/d2fc9f48-c166-4a9e-9868-133a1db7af88/llvm-project/clang/lib/Serialization/GlobalModuleIndex.cpp:13: /usr/include/c++/13/tuple: In instantiation of ‘struct std::_Tuple_impl<0, clang::ModuleFileExtensionReader*, std::default_delete<clang::ModuleFileExtensionReader> >’: /usr/include/c++/13/tuple:1232:11: required from ‘class std::tuple<clang::ModuleFileExtensionReader*, std::default_delete<clang::ModuleFileExtensionReader> >’ /usr/include/c++/13/bits/unique_ptr.h:232:27: required from ‘class std::__uniq_ptr_impl<clang::ModuleFileExtensionReader, std::default_delete<clang::ModuleFileExtensionReader> >’ /usr/include/c++/13/bits/unique_ptr.h:239:12: required from ‘struct std::__uniq_ptr_data<clang::ModuleFileExtensionReader, std::default_delete<clang::ModuleFileExtensionReader>, true, true>’ /usr/include/c++/13/bits/unique_ptr.h:283:33: required from ‘class std::unique_ptr<clang::ModuleFileExtensionReader>’ /usr/include/c++/13/bits/stl_vector.h:367:35: required from ‘std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = std::unique_ptr<clang::ModuleFileExtensionReader>; _Alloc = std::allocator<std::unique_ptr<clang::ModuleFileExtensionReader> >]’ /usr/include/c++/13/bits/stl_vector.h:528:7: required from here /usr/include/c++/13/tuple:269:7: internal compiler error: Segmentation fault 269 | _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } | ^~~~~~~ 0x85d7c5 crash_signal ../../src/gcc/toplev.cc:314 0xa0d5e0 profile_count::operator==(profile_count const&) const ../../src/gcc/profile-count.h:865 0xa0d5e0 profile_count::apply_probability(profile_probability) const ../../src/gcc/profile-count.h:1104 0xa0d5e0 edge_def::count() const ../../src/gcc/basic-block.h:639 0xa0d5e0 eliminate_tail_call ../../src/gcc/tree-tailcall.cc:982 0xa0d5e0 optimize_tail_call ../../src/gcc/tree-tailcall.cc:1053 0xa0d5e0 tree_optimize_tail_calls_1 ../../src/gcc/tree-tailcall.cc:1193 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions.