/tmp/cvs/gcc-20060701/Build/./gcc/xgcc -shared-libgcc -B/tmp/cvs/gcc-20060701/Build/./gcc -nostdinc++ -L/tmp/cvs/gcc-20060701/Build/ia64-suse-linux/libstdc++-v3/src -L/tmp/cvs/gcc-20060701/Build/ia64-suse-linux/libstdc++-v3/src/.libs -B/tmp/cvs/gcc-20060701/Build/root/ia64-suse-linux/bin/ -B/tmp/cvs/gcc-20060701/Build/root/ia64-suse-linux/lib/ -isystem /tmp/cvs/gcc-20060701/Build/root/ia64-suse-linux/include -isystem /tmp/cvs/gcc-20060701/Build/root/ia64-suse-linux/sys-include -Winvalid-pch -Wno-deprecated -xc++-header -O2 -g -D_GNU_SOURCE -I/tmp/cvs/gcc-20060701/Build/ia64-suse-linux/libstdc++-v3/include/ia64-suse-linux -I/tmp/cvs/gcc-20060701/Build/ia64-suse-linux/libstdc++-v3/include -I/tmp/cvs/gcc-20060701/libstdc++-v3/libsupc++ /tmp/cvs/gcc-20060701/libstdc++-v3/include/precompiled/extc++.h -O2 -g -o ./ia64-suse-linux/bits/extc++.h.gch/O2g.gch /tmp/cvs/gcc-20060701/Build/ia64-suse-linux/libstdc++-v3/include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:235: internal compiler error: tree check: expected integer_cst, have scope_ref in tree_int_cst_sgn, at tree.c:4476
#1 0x40000000008cd430 in tree_check_failed (node=0x200000000189da40, file=0x4000000000d013b8 "../../gcc/tree.c", line=4476, function=0x4000000000d03d98 "tree_int_cst_sgn") at ../../gcc/tree.c:6059 6059 internal_error ("tree check: %s, have %s in %s, at %s:%d", (gdb) up #2 0x40000000008cf5b0 in tree_int_cst_sgn (t=0x200000000189da40) at ../../gcc/tree.c:4476 4476 if (TREE_INT_CST_LOW (t) == 0 && TREE_INT_CST_HIGH (t) == 0) (gdb) p t $1 = (tree) 0x200000000189da40 (gdb) pt t <scope_ref 0x200000000189da40 arg 0 <record_type 0x2000000001f9a050 is_simple<Key> type_0 type_5 type_6 VOID align 8 symtab 0 alias set -1 context <namespace_decl 0x2000000001dd1ad0 detail> no-binfo use_template=1 interface-unknown chain <type_decl 0x2000000001f9f5a0 is_simple<Key>>> arg 1 <identifier_node 0x200000010615bbc0 value bindings <(nil)> local bindings <(nil)>>> (gdb) up During symbol reading, unsupported tag: 'DW_TAG_const_type'. #3 0x4000000000235010 in write_template_arg_literal ( value=<value optimized out>) at ../../gcc/cp/mangle.c:1216 1216 int sign = tree_int_cst_sgn (cst); (gdb) up #4 0x4000000000237da0 in write_template_args (args=0x2000000002aa6e40) at ../../gcc/cp/mangle.c:2310 2310 write_template_arg_literal (node); (gdb) p args $2 = (tree) 0x2000000002aa6e40 (gdb) pt <tree_vec 0x2000000002aa6e40 elt 0 <const_decl 0x2000000001cba260 simple_value> elt 1 <template_type_parm 0x200000000189b180 Value_Type> elt 2 <typename_type 0x2000000001846730 pointer>> (gdb) p *mangle_obstack $10 = {chunk_size = 4064, chunk = 0x6000000000219dc0, object_base = 0x600000000021a2be "_ZN5pb_ds6detail12binary_heap_IT_T0_T1_E6modifyENS0_33binary_heap_const_point_iterator_IS2_NS0_16conditional_typeILNS5_5._199E", next_free = 0x600000000021a33c "", chunk_limit = 0x600000000021ada0 "", temp = 0, alignment_mask = 0, chunkfun = @0x4000000000d84880: 0x4000000000c38e00 <xmalloc>, freefun = 0x2000000000046798 <local+4696>, extra_arg = 0x0, use_extra_arg = 0, maybe_empty_object = 0, alloc_failed = 0} -- Summary: [4.2 regression] ICE in tree_int_cst_sgn Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, build Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: schwab at suse dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28217