https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84405
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Tried to bisect this, but it doesn't lead anywhere. r80000 fails to compile it, just because I haven't tried to tweak the 3.4.6 preprocessed *.ii file enough (e.g. offsetof), r90000 through r113198 compile it, but it hangs at runtime, r113199 ICEs on it in C++ FE, r113250 ICEs on it in the gimplifier, r113500 errors on it: ../../gcc/poly-int.h:172: error: incomplete type ‘wi::int_traits<short unsigned int:10>’ used in nested name specifier ../../gcc/tree-ssa.c: In function ‘void maybe_rewrite_mem_ref_base(tree_node**, bitmap_head*)’: ../../gcc/tree-ssa.c:1388: error: no match for ‘operator==’ in ‘wi::to_offset(((const tree_node*)tree_class_check(contains_struct_check((* tp), TS_TYPED, ((const char*)"../../gcc/tree-ssa.c"), 1387, ((const char*)(& __FUNCTION__)))->tree_node::typed.tree_typed::type, tcc_type, ((const char*)"../../gcc/tree-ssa.c"), 1387, ((const char*)(& __FUNCTION__)))->tree_node::type_common.tree_type_common::size)) == tree_class_check(contains_struct_check((* tp), TS_TYPED, ((const char*)"../../gcc/tree-ssa.c"), 1388, ((const char*)(& __FUNCTION__)))->tree_node::typed.tree_typed::type, tcc_type, ((const char*)"../../gcc/tree-ssa.c"), 1388, ((const char*)(& __FUNCTION__)))->tree_node::type_common.tree_type_common::precision’ ../../gcc/tree-ssa.c: In function ‘tree_node* non_rewritable_mem_ref_base(tree_node*)’: ../../gcc/tree-ssa.c:1457: error: no match for ‘operator==’ in ‘wi::to_offset(((const tree_node*)tree_class_check(contains_struct_check(base, TS_TYPED, ((const char*)"../../gcc/tree-ssa.c"), 1456, ((const char*)(& __FUNCTION__)))->tree_node::typed.tree_typed::type, tcc_type, ((const char*)"../../gcc/tree-ssa.c"), 1456, ((const char*)(& __FUNCTION__)))->tree_node::type_common.tree_type_common::size)) == tree_class_check(contains_struct_check(base, TS_TYPED, ((const char*)"../../gcc/tree-ssa.c"), 1457, ((const char*)(& __FUNCTION__)))->tree_node::typed.tree_typed::type, tcc_type, ((const char*)"../../gcc/tree-ssa.c"), 1457, ((const char*)(& __FUNCTION__)))->tree_node::type_common.tree_type_common::precision’ and so does up to r117833, r117834 is the first one with the bad value initialization, fixed only in r132088, which is the first one that actually works.