This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ ICE 19990828 in current CVS breaks bootstrap
At 02:20 15.12.99 , Mark Mitchell wrote:
> >>>>> "Franz" == Franz Sirl <Franz.Sirl-kernel@lauterbach.com> writes:
>
> Franz> Am Wed, 15 Dec 1999 schrieb Mark Mitchell:
> >> I checked in a fix today for an abort with exactly this
> >> syptomology. Would you mind checking to see whether that fixed
> >> it? If not, I'll look at your test-case.
>
> Franz> Nope, sorry, the bug remains :-(.
>
>Rats. Thanks.
Hmm, strange. Even though the compiler reports the same error 19990828, it
faults in a different spot now as the backtrace shows.
Franz.
(gdb) b my_friendly_abort
Breakpoint 1 at 0x10201494: file ../../../../cvsx/gccm/gcc/cp/typeck2.c,
line 308.
(gdb) r cinst.ii -quiet -dumpbase cinst.cc -g -O2 -version -fvtable-thunks
-fno-implicit-templates -fPIC -o cinst.s
Starting program: /home/fsirl/obj/gccm/gcc/cc1plus cinst.ii -quiet
-dumpbase cinst.cc -g -O2 -version -fvtable-thunks -fno-implicit-templ
ates -fPIC -o cinst.s
GNU C++ version 2.96 19991215 (experimental) (ppc-redhat-linux) compiled by
GNU C version 2.96 19991215 (experimental).
Breakpoint 1, my_friendly_abort (i=19990828) at
../../../../cvsx/gccm/gcc/cp/typeck2.c:308
308 if (abortcount == 1)
(gdb) bt
#0 my_friendly_abort (i=19990828) at
../../../../cvsx/gccm/gcc/cp/typeck2.c:308
#1 0x102015bc in my_friendly_assert (cond=19990828, where=19990828) at
../../../../cvsx/gccm/gcc/cp/typeck2.c:342
#2 0x101e56dc in emit_local_var (decl=0x303c1880) at
../../../../cvsx/gccm/gcc/cp/decl.c:7553
#3 0x102546e0 in expand_stmt (t=0x303c3520) at
../../../../cvsx/gccm/gcc/cp/semantics.c:2349
#4 0x101f1f7c in cplus_expand_expr (exp=0x303c34c0, target=0x131092c,
tmode=VOIDmode, modifier=EXPAND_NORMAL)
at ../../../../cvsx/gccm/gcc/cp/expr.c:148
#5 0x10048ac4 in expand_expr (exp=0x303c34c0, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL) at ../../../cvsx/gccm/gcc/expr.c:8405
#6 0x100440fc in expand_expr (exp=0x303c38a0, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL) at ../../../cvsx/gccm/gcc/expr.c:6023
#7 0x10048b1c in expand_expr (exp=0x303bd8e0, target=0x0, tmode=DFmode,
modifier=EXPAND_NORMAL) at ../../../cvsx/gccm/gcc/expr.c:8415
#8 0x10046278 in expand_expr (exp=0x303bd900, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL) at ../../../cvsx/gccm/gcc/expr.c:7050
#9 0x10046dc0 in expand_expr (exp=0x303bd920, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL) at ../../../cvsx/gccm/gcc/expr.c:7389
#10 0x1004c9ac in precompute_register_parameters (num_actuals=673327180,
args=0x131092c, reg_parm_seen=0x7fffe8d4)
at ../../../cvsx/gccm/gcc/calls.c:649
#11 0x1004ed7c in expand_call (exp=0x303bda80, target=0x0, ignore=0) at
../../../cvsx/gccm/gcc/calls.c:2247
#12 0x10070df0 in expand_builtin (exp=0x303bda80, target=0x0,
subtarget=0x0, mode=SFmode, ignore=0)
at ../../../cvsx/gccm/gcc/builtins.c:2510
#13 0x1004606c in expand_expr (exp=0x303bda80, target=0x0, tmode=SFmode,
modifier=EXPAND_NORMAL) at ../../../cvsx/gccm/gcc/expr.c:6980
#14 0x10046278 in expand_expr (exp=0x303bdb20, target=0x303a6c90,
tmode=SFmode, modifier=EXPAND_NORMAL)
at ../../../cvsx/gccm/gcc/expr.c:7050
#15 0x1003ffd8 in store_expr (exp=0x303bdb20, target=0x303a6c90,
want_value=0) at ../../../cvsx/gccm/gcc/expr.c:3744
#16 0x1003fadc in expand_assignment (to=0x303bb380, from=0x303bdb20,
want_value=0, suggest_reg=809277384)
at ../../../cvsx/gccm/gcc/expr.c:3568
#17 0x100483ac in expand_expr (exp=0x303bdb40, target=0x303bb380,
tmode=VOIDmode, modifier=EXPAND_NORMAL)
at ../../../cvsx/gccm/gcc/expr.c:8126
#18 0x1002dddc in expand_expr_stmt (exp=0x303bdb40) at
../../../cvsx/gccm/gcc/stmt.c:1853
#19 0x101f08f8 in cplus_expand_expr_stmt (exp=0x131092c) at
../../../../cvsx/gccm/gcc/cp/decl.c:14143
#20 0x102507b0 in finish_expr_stmt (expr=0x303bdb40) at
../../../../cvsx/gccm/gcc/cp/semantics.c:155
#21 0x10254628 in expand_stmt (t=0x303bdb60) at
../../../../cvsx/gccm/gcc/cp/semantics.c:2328
#22 0x10254850 in expand_stmt (t=0x303bd500) at
../../../../cvsx/gccm/gcc/cp/semantics.c:2429
#23 0x1025480c in expand_stmt (t=0x303bd160) at
../../../../cvsx/gccm/gcc/cp/semantics.c:2415
#24 0x10254850 in expand_stmt (t=0x303bd0c0) at
../../../../cvsx/gccm/gcc/cp/semantics.c:2429
#25 0x1025482c in expand_stmt (t=0x303bcda0) at
../../../../cvsx/gccm/gcc/cp/semantics.c:2421
#26 0x10254850 in expand_stmt (t=0x303ba1a0) at
../../../../cvsx/gccm/gcc/cp/semantics.c:2429
#27 0x10254d84 in expand_body (fn=0x303b9380) at
../../../../cvsx/gccm/gcc/cp/semantics.c:2715
#28 0x1020049c in instantiate_decl (d=0x303b9380) at
../../../../cvsx/gccm/gcc/cp/pt.c:9581
#29 0x10200620 in instantiate_pending_templates () at
../../../../cvsx/gccm/gcc/cp/pt.c:9649
#30 0x10210890 in finish_file () at ../../../../cvsx/gccm/gcc/cp/decl2.c:3426
#31 0x10253a0c in finish_translation_unit () at
../../../../cvsx/gccm/gcc/cp/semantics.c:1753
#32 0x10225940 in yyparse () at parse.y:354
#33 0x10003f50 in compile_file (name=0x102e0000 "") at
../../../cvsx/gccm/gcc/toplev.c:3238
#34 0x100080f8 in main (argc=13, argv=0x7ffff7d4) at
../../../cvsx/gccm/gcc/toplev.c:5611
#35 0xff0b57c in Letext () at ../sysdeps/powerpc/elf/libc-start.c:106
(gdb) up
#1 0x102015bc in my_friendly_assert (cond=19990828, where=19990828) at
../../../../cvsx/gccm/gcc/cp/typeck2.c:342
342 my_friendly_abort (where);
(gdb) up
#2 0x101e56dc in emit_local_var (decl=0x303c1880) at
../../../../cvsx/gccm/gcc/cp/decl.c:7553
7553 my_friendly_assert (TREE_CODE (decl) == RESULT_DECL,
(gdb) p debug_tree(decl)
<var_decl 0x303c1880 x
type <reference_type 0x300fea00
type <record_type 0x300fe980 complex<float>
readonly permanent needs-constructing type_1 type_5 DI
size <integer_cst 0x30107860 constant permanent 64>
align 32 symtab 0 alias set 0 fields <field_decl 0x30100a80 re>
needs-constructor X() X(constX&) this=(X&) n_parents 0
use_template=2 interface-only
member-functions <tree_vec 0x30108280
permanent
elt 0 <overload 0x300cbd10>
elt 2 <function_decl 0x30100100 __aml>
elt 3 <function_decl 0x300fee80 __ami>
elt 4 <function_decl 0x30108180 __as>
elt 5 <function_decl 0x30100380 __adv>
elt 6 <function_decl 0x300fec00 __apl>
elt 7 <function_decl 0x30100580 real>
elt 8 <function_decl 0x30100900 imag>>
pointer_to_this <pointer_type 0x30100680> reference_to_this
<reference_type 0x300fea00>>
unsigned permanent SI
size <integer_cst 0x300fdf20 constant permanent 32>
align 32 symtab 0 alias set 296>
unsigned used permanent SI file
../../../../cvsx/gccm/libstdc++/std/complext.cc line 271 size <integer_cst
0x300fdf20 32>
align 32 context <function_decl 0x303b9380 sqrt> abstract_origin
<parm_decl 0x30110500 x>
(reg/v:SI 117)>
$1 = void