https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104052
Bug ID: 104052 Summary: Modules ICE on powerpc64le-linux with -mabi=ieeelongdouble Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- In gcc configured --with-long-double-format=ieee (but also just when running make check-g++ RUNTESTFLAGS='--target_board=unix/-mabi=ieeelongdouble modules.exp' I'm seeing all the tests ICE like: gcc/testsuite/g++.dg/modules/global-3_a.C:5:8: internal compiler error: in type_node, at cp/module.cc:8721 0x10218fcb trees_out::type_node(tree_node*) ../../gcc/cp/module.cc:8721 0x10216f57 trees_out::tree_node(tree_node*) ../../gcc/cp/module.cc:9049 0x10218ecb trees_out::type_node(tree_node*) ../../gcc/cp/module.cc:8715 0x10216f57 trees_out::tree_node(tree_node*) ../../gcc/cp/module.cc:9049 0x10217b0f trees_out::core_vals(tree_node*) ../../gcc/cp/module.cc:6003 0x1021880f trees_out::tree_node_vals(tree_node*) ../../gcc/cp/module.cc:7062 0x1021894f trees_out::fn_parms_init(tree_node*) ../../gcc/cp/module.cc:9981 0x10215923 trees_out::decl_value(tree_node*, depset*) ../../gcc/cp/module.cc:7626 0x1024ab47 depset::hash::find_dependencies(module_state*) ../../gcc/cp/module.cc:13128 0x1024beef module_state::write(elf_out*, cpp_reader*) ../../gcc/cp/module.cc:17618 0x112c25cb finish_module_processing(cpp_reader*) ../../gcc/cp/module.cc:19874 0x10911f93 c_parse_final_cleanups() ../../gcc/cp/decl2.c:5311 0x11274c23 c_common_parse_file() ../../gcc/c-family/c-opts.c:1260 where the innermost type_node is called on <real_type 0x7fffe82f0b28 __ibm128 type_6 IF size <integer_cst 0x7fffe8131230 type <integer_type 0x7fffe82200a8 bitsizetype> constant 128> unit-size <integer_cst 0x7fffe8131248 type <integer_type 0x7fffe8220000 sizetype> constant 16> align:128 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7fffe82f0b28 precision:128 pointer_to_this <pointer_type 0x7fffdb9680a0> reference_to_this <reference_type 0x7fffddba1848>> But I don't really see type_node called on other REAL_TYPEs, e.g. with -mabi=ibmlongdouble