https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118454
Bug ID: 118454 Summary: [15 regression] ICE when building scipy-1.15.1 (hash table checking failed: equal operator returns true for a pair of values with a different hash value) Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: ice-checking, ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- ``` x86_64-pc-linux-gnu-g++ -Iscipy/special/cython_special.cpython-311-x86_64-linux-gnu.so.p -Iscipy/special -I../scipy-1.15.1/scipy/special -Iscipy/_lib -I../scipy-1.15.1/scipy/_lib -I../scipy-1.15.1/scipy/_build_utils/src -I../../../../../../../usr/lib/python3.11/site-packages/numpy/_core/include -I/usr/include/python3.11 -fvisibility=hidden -fvisibility-inlines-hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O3 -march=native -mtls-dialect=gnu2 -fno-semantic-interposition -pipe -fcf-protection=none -fdiagnostics-color=always -fdiagnostics-urls=never -frecord-gcc-switches -fdiagnostics-details -fdiagnostics-set-output=text:experimental-nesting=yes -Wa,-O2 -Wa,-mtune=znver2 -Warray-bounds -Wstrict-aliasing -Wfree-nonheap-object -Wuninitialized -Wmaybe-uninitialized -Wreturn-type -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -Warray-bounds -fdiagnostics-details -Wstringop-overread -Wstringop-overflow -Wstringop-truncation -Wformat-overflow -Wformat-truncation -Wformat -Werror=format-security -DNDEBUG -fPIC -DSP_SPECFUN_ERROR -DNPY_NO_DEPRECATED_API=NPY_1_9_API_VERSION -MD -MQ scipy/special/cython_special.cpython-311-x86_64-linux-gnu.so.p/xsf_wrappers.cpp.o -MF scipy/special/cython_special.cpython-311-x86_64-linux-gnu.so.p/xsf_wrappers.cpp.o.d -o scipy/special/cython_special.cpython-311-x86_64-linux-gnu.so.p/xsf_wrappers.cpp.o -c ../scipy-1.15.1/scipy/special/xsf_wrappers.cpp hash table checking failed: equal operator returns true for a pair of values with a different hash value In file included from ../scipy-1.15.1/scipy/special/xsf/legendre.h:3, from ../scipy-1.15.1/scipy/special/xsf/sph_harm.h:3, from ../scipy-1.15.1/scipy/special/xsf_wrappers.cpp:24: ../scipy-1.15.1/scipy/special/xsf/dual.h:648:64: internal compiler error: in hashtab_chk_error, at hash-table.cc:137 648 | using type = dual<typename complex_type<T>::type, Orders...>; | ^ 0x55e7e46a5598 internal_error(char const*, ...) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:517 0x55e7e46a5733 fancy_abort(char const*, int, char const*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic.cc:1722 0x55e7e46ac700 hashtab_chk_error() /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/hash-table.cc:137 0x55e7e308bf8a hash_table<spec_hasher, false, xcallocator>::verify(spec_entry* const&, unsigned int) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/hash-table.h:1118 0x55e7e3080337 hash_table<spec_hasher, false, xcallocator>::find_with_hash(spec_entry* const&, unsigned int) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/hash-table.h:994 0x55e7e3080337 hash_table<spec_hasher, false, xcallocator>::find(spec_entry* const&) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/hash-table.h:430 0x55e7e3080337 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/pt.cc:10330 0x55e7e4b3ead7 finish_template_type(tree_node*, tree_node*, int) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/semantics.cc:4302 0x55e7e48b60a8 cp_parser_template_id /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:19455 0x55e7e48d7a2f cp_parser_class_name /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:27175 0x55e7e48a8d12 cp_parser_qualifying_entity /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:7546 0x55e7e48a8d12 cp_parser_nested_name_specifier_opt /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:7232 0x55e7e488fe06 cp_parser_simple_type_specifier /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:20917 0x55e7e4a98241 cp_parser_type_specifier /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:20569 0x55e7e4a98241 cp_parser_type_specifier_seq /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:25666 0x55e7e4a9709f cp_parser_type_id_1 /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:25448 0x55e7e51ac99d cp_parser_type_id /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:25544 0x55e7e51ac99d cp_parser_alias_declaration /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:22970 0x55e7e49263db cp_parser_member_declaration /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:28483 0x55e7e48d5d19 cp_parser_member_specification_opt /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:28389 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. ``` --- ``` Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python --enable-objc-gc --enable-languages=c,c++,d,go,objc,obj-c++,fortran,ada,m2,rust --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 15.0.9999 p, commit 9034a6d5fcf3a2ead9735466c906830d472a2f9c' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-offload-defaulted --enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp --enable-libada --disable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20250113 (experimental) 0e05b793fba2a9bea9f0fbb1f068679f5dadf514 (Gentoo Hardened 15.0.9999 p, commit 9034a6d5fcf3a2ead9735466c906830d472a2f9c) ```