https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106034
Bug ID: 106034 Summary: internal compiler error: in type_node, at cp/module.cc:8736 using --with-long-double-format=ieee Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- make -k check-c++ RUNTESTFLAGS="modules.exp=binding-1_a.H" FAIL: g++.dg/modules/binding-1_a.H -std=c++17 (internal compiler error: in type_node, at cp/module.cc:8736) FAIL: g++.dg/modules/binding-1_a.H -std=c++17 (test for excess errors) FAIL: g++.dg/modules/binding-1_a.H module-cmi (gcm.cache/$srcdir/g++.dg/modules/binding-1_a.H.gcm) FAIL: g++.dg/modules/binding-1_a.H -std=c++2a (internal compiler error: in type_node, at cp/module.cc:8736) FAIL: g++.dg/modules/binding-1_a.H -std=c++2a (test for excess errors) FAIL: g++.dg/modules/binding-1_a.H module-cmi (gcm.cache/$srcdir/g++.dg/modules/binding-1_a.H.gcm) FAIL: g++.dg/modules/binding-1_a.H -std=c++2b (internal compiler error: in type_node, at cp/module.cc:8736) FAIL: g++.dg/modules/binding-1_a.H -std=c++2b (test for excess errors) FAIL: g++.dg/modules/binding-1_a.H module-cmi (gcm.cache/$srcdir/g++.dg/modules/binding-1_a.H.gcm) This is an issue specifically with compilers configured with --with-long-double-format=ieee. It also shows up in gcc 10, 11, and 12 though at a different line #. I am only seeing it on a system where the distro (Fedora 36) tools were also built with --with-long-double-format=ieee. My trunk compiler was configured was with --enable-languages=c,fortran,c++ --with-cpu=power9 --enable-bootstrap --disable-multilib --with-long-double-format=ieee Note: bootstrap part doesn't matter as a non-bootstrap compiler also ICEs the same way. The distro compiler was gcc version 12.1.1 20220507 (Red Hat 12.1.1-1) (GCC) and was configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-targets=powerpcle-linux --disable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-12.1.1-20220507/obj-ppc64le-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-offload-defaulted --enable-gnu-indirect-function --enable-secureplt --with-long-double-128 --with-long-double-format=ieee --with-cpu-32=power8 --with-tune-32=power8 --with-cpu-64=power8 --with-tune-64=power8 --build=ppc64le-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1 spawn -ignore SIGHUP /home/seurer/gcc/git/build/gcc-ieee-bootstrap/gcc/testsuite/g++/../../xg++ -B/home/seurer/gcc/git/build/gcc-ieee-bootstrap/gcc/testsuite/g++/../../ /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/testsuite/g++.dg/modules/binding-1_a.H -fdiagnostics-plain-output -nostdinc++ -I/home/seurer/gcc/git/build/gcc-ieee-bootstrap/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/powerpc64le-unknown-linux-gnu -I/home/seurer/gcc/git/build/gcc-ieee-bootstrap/powerpc64le-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/git/gcc-ieee-bootstrap/libstdc++-v3/libsupc++ -I/home/seurer/gcc/git/gcc-ieee-bootstrap/libstdc++-v3/include/backward -I/home/seurer/gcc/git/gcc-ieee-bootstrap/libstdc++-v3/testsuite/util -fmessage-length=0 -std=c++17 -pedantic-errors -Wno-long-long -fmodule-header -S -o binding-1_a.s^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/testsuite/g++.dg/modules/binding-1_a.H: internal compiler error: in type_node, at cp/module.cc:8736^M 0x104fe15f trees_out::type_node(tree_node*)^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/cp/module.cc:8736^M 0x104f94cb trees_out::tree_node(tree_node*)^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/cp/module.cc:9064^M 0x104fd597 trees_out::type_node(tree_node*)^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/cp/module.cc:8730^M 0x104f94cb trees_out::tree_node(tree_node*)^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/cp/module.cc:9064^M 0x104fade3 trees_out::core_vals(tree_node*)^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/cp/module.cc:6009^M 0x104fcd5b trees_out::tree_node_vals(tree_node*)^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/cp/module.cc:7076^M 0x104fcd5b trees_out::fn_parms_init(tree_node*)^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/cp/module.cc:9996^M 0x104f666b trees_out::decl_value(tree_node*, depset*)^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/cp/module.cc:7640^M 0x10505153 depset::hash::find_dependencies(module_state*)^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/cp/module.cc:13144^M 0x10505a6f module_state::write_begin(elf_out*, cpp_reader*, module_state_config&, unsigned int&)^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/cp/module.cc:17640^M 0x10507353 finish_module_processing(cpp_reader*)^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/cp/module.cc:19962^M 0x1043c8df c_parse_final_cleanups()^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/cp/decl2.cc:5156^M 0x107f3733 c_common_parse_file()^M /home/seurer/gcc/git/gcc-ieee-bootstrap/gcc/c-family/c-opts.cc:1253^M Please submit a full bug report, with preprocessed source (by using -freport-bug).^M Please include the complete backtrace with any bug report.^M See <https://gcc.gnu.org/bugs/> for instructions.^M compiler exited with status 1 FAIL: g++.dg/modules/binding-1_a.H -std=c++17 (internal compiler error: in type_node, at cp/module.cc:8736)