https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98057
Bug ID: 98057 Summary: ICE when build clang Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: euloanty at live dot com Target Milestone: --- | ~~~~^ ../include/llvm/ADT/SparseBitVector.h:54:11: note: while referencing 'llvm::SparseBitVectorElement<128>::Bits' 54 | BitWord Bits[BITWORDS_PER_ELEMENT]; | ^~~~ [1031/4271] Building CXX object lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/Native/PDBFileBuilder.cpp.o In file included from ../include/llvm/DebugInfo/PDB/Native/HashTable.h:12, from ../include/llvm/DebugInfo/PDB/Native/NamedStreamMap.h:16, from ../include/llvm/DebugInfo/PDB/Native/PDBFileBuilder.h:15, from ../lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp:9: ../include/llvm/ADT/SparseBitVector.h: In member function 'void llvm::pdb::PDBFileBuilder::commitSrcHeaderBlock(llvm::WritableBinaryStream&, const llvm::msf::MSFLayout&)': ../include/llvm/ADT/SparseBitVector.h:129:15: warning: array subscript 2 is above array bounds of 'const BitWord [2]' {aka 'const long unsigned int [2]'} [-Warray-bounds] 129 | if (Bits[i] != 0) | ~~~~^ ../include/llvm/ADT/SparseBitVector.h:54:11: note: while referencing 'llvm::SparseBitVectorElement<128>::Bits' 54 | BitWord Bits[BITWORDS_PER_ELEMENT]; | ^~~~ ../include/llvm/ADT/SparseBitVector.h: In member function 'void llvm::pdb::HashTable<ValueT>::grow(TraitsT&) [with TraitsT = llvm::pdb::StringTableHashTraits; ValueT = llvm::pdb::SrcHeaderBlockEntry]': ../include/llvm/ADT/SparseBitVector.h:129:15: warning: array subscript 2 is above array bounds of 'const BitWord [2]' {aka 'const long unsigned int [2]'} [-Warray-bounds] 129 | if (Bits[i] != 0) | ~~~~^ ../include/llvm/ADT/SparseBitVector.h:54:11: note: while referencing 'llvm::SparseBitVectorElement<128>::Bits' 54 | BitWord Bits[BITWORDS_PER_ELEMENT]; | ^~~~ ../include/llvm/ADT/SparseBitVector.h: In member function 'llvm::Error llvm::pdb::PDBFileBuilder::finalizeMsfLayout()': ../include/llvm/ADT/SparseBitVector.h:138:15: warning: array subscript 4294967295 is above array bounds of 'const BitWord [2]' {aka 'const long unsigned int [2]'} [-Warray-bounds] 138 | if (Bits[Idx] != 0) | ~~~~^ ../include/llvm/ADT/SparseBitVector.h:54:11: note: while referencing 'llvm::SparseBitVectorElement<128>::Bits' 54 | BitWord Bits[BITWORDS_PER_ELEMENT]; | ^~~~ ../include/llvm/ADT/SparseBitVector.h:138:15: warning: array subscript 4294967295 is above array bounds of 'const BitWord [2]' {aka 'const long unsigned int [2]'} [-Warray-bounds] 138 | if (Bits[Idx] != 0) | ~~~~^ ../include/llvm/ADT/SparseBitVector.h:54:11: note: while referencing 'llvm::SparseBitVectorElement<128>::Bits' 54 | BitWord Bits[BITWORDS_PER_ELEMENT]; | ^~~~ [1035/4271] Building CXX object lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/Native/TpiStream.cpp.o In file included from ../include/llvm/DebugInfo/PDB/Native/HashTable.h:12, from ../include/llvm/DebugInfo/PDB/Native/TpiStream.h:13, from ../lib/DebugInfo/PDB/Native/TpiStream.cpp:9: ../include/llvm/ADT/SparseBitVector.h: In member function 'llvm::Error llvm::pdb::HashTable<ValueT>::load(llvm::BinaryStreamReader&) [with ValueT = llvm::support::detail::packed_endian_specific_integral<unsigned int, llvm::support::little, 1>]': ../include/llvm/ADT/SparseBitVector.h:129:15: warning: array subscript 2 is above array bounds of 'const BitWord [2]' {aka 'const long unsigned int [2]'} [-Warray-bounds] 129 | if (Bits[i] != 0) | ~~~~^ ../include/llvm/ADT/SparseBitVector.h:54:11: note: while referencing 'llvm::SparseBitVectorElement<128>::Bits' 54 | BitWord Bits[BITWORDS_PER_ELEMENT]; | ^~~~ ../include/llvm/ADT/SparseBitVector.h:129:15: warning: array subscript 2 is above array bounds of 'const BitWord [2]' {aka 'const long unsigned int [2]'} [-Warray-bounds] 129 | if (Bits[i] != 0) | ~~~~^ ../include/llvm/ADT/SparseBitVector.h:54:11: note: while referencing 'llvm::SparseBitVectorElement<128>::Bits' 54 | BitWord Bits[BITWORDS_PER_ELEMENT]; | ^~~~ [1084/4271] Building CXX object lib/ExecutionEngine/RuntimeDyld/CMakeFiles/LLVMRuntimeDyld.dir/RTDyldMemoryManager.cpp. FAILED: lib/ExecutionEngine/RuntimeDyld/CMakeFiles/LLVMRuntimeDyld.dir/RTDyldMemoryManager.cpp.o /usr/local/bin/g++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/ExecutionEngine/RuntimeDyld -I../lib/ExecutionEngine/RuntimeDyld -Iinclude -I../include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -fno-rtti -std=c++14 -MD -MT lib/ExecutionEngine/RuntimeDyld/CMakeFiles/LLVMRuntimeDyld.dir/RTDyldMemoryManager.cpp.o -MF lib/ExecutionEngine/RuntimeDyld/CMakeFiles/LLVMRuntimeDyld.dir/RTDyldMemoryManager.cpp.o.d -o lib/ExecutionEngine/RuntimeDyld/CMakeFiles/LLVMRuntimeDyld.dir/RTDyldMemoryManager.cpp.o -c ../lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp ../lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp:295:1: error: implicit_section flag is set but section isn't 295 | } // namespace llvm | ^ *.LTHUNK4/2647 (void llvm::RTDyldMemoryManager::*.LTHUNK4()) @0x7f0869612dd0 Type: function definition analyzed alias cpp_implicit_alias Visibility: prevailing_def_ironly (implicit_section) artificial References: _ZN4llvm18MCJITMemoryManager6anchorEv/2649 (alias) Referring: Availability: available Function flags: Called by: _ZThn16_N4llvm19RTDyldMemoryManager6anchorEv/2648 Calls: during IPA pass: icf ../lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp:295:1: internal compiler error: verify_cgraph_node failed 0xbf89d8 cgraph_node::verify_node() ../../gcc/gcc/cgraph.c:3807 0xbe7ef4 symtab_node::verify() ../../gcc/gcc/symtab.c:1356 0xbe9182 symtab_node::verify_symtab_nodes() ../../gcc/gcc/symtab.c:1384 0xe72896 symtab_node::checking_verify_symtab_nodes() ../../gcc/gcc/cgraph.h:675 0xe72896 symbol_table::remove_unreachable_nodes(_IO_FILE*) ../../gcc/gcc/ipa.c:679 0xf7dd29 execute_todo ../../gcc/gcc/passes.c:2107 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. [1097/4271] Building CXX object lib/ExecutionEngine/RuntimeDyld/CMakeFiles/LLVMRuntimeDyld.dir/RuntimeDyldELF.cpp.o ninja: build stopped: subcommand failed.