This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc++/36723] [4.4 Regression] massive obj-c++ failures at rev.137407
- From: "danglin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2008 22:39:54 -0000
- Subject: [Bug objc++/36723] [4.4 Regression] massive obj-c++ failures at rev.137407
- References: <bug-36723-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from danglin at gcc dot gnu dot org 2008-07-08 22:39 -------
Also seen on hppa-unknown-linux-gnu.
/home/dave/gnu/gcc-4.4/gcc/gcc/testsuite/obj-c++.dg/bad-receiver-type.mm:14:
warning: invalid receiver type ''
Program received signal SIGSEGV, Segmentation fault.
0x0015134c in convert_for_initialization (exp=0x0, type=0x4012ad00,
rhs=0x40132520, flags=11, errtype=0x7ddbe0 "initialization", fndecl=0x0,
parmnum=0, complain=tf_warning_or_error) at ../../gcc/gcc/cp/typeck.c:6780
6780 if ((TREE_CODE (TREE_TYPE (rhs)) == ARRAY_TYPE
(gdb) bt
#0 0x0015134c in convert_for_initialization (exp=0x0, type=0x4012ad00,
rhs=0x40132520, flags=11, errtype=0x7ddbe0 "initialization", fndecl=0x0,
parmnum=0, complain=tf_warning_or_error) at ../../gcc/gcc/cp/typeck.c:6780
#1 0x000d83c4 in digest_init_r (type=0x4012ad00, init=0x4012b268,
nested=0 '\0') at ../../gcc/gcc/cp/typeck2.c:811
#2 0x000d9954 in store_init_value (decl=0x4012b268, init=0x40132520)
at ../../gcc/gcc/cp/typeck2.c:619
#3 0x00162e00 in expand_aggr_init_1 (binfo=0x40082dc0, true_exp=0x4012b268,
exp=0x4012b268, init=0x40132520, flags=11, complain=tf_warning_or_error)
at ../../gcc/gcc/cp/init.c:1425
#4 0x00166cbc in build_aggr_init (exp=0x4012b268, init=0x40132520, flags=11,
complain=tf_warning_or_error) at ../../gcc/gcc/cp/init.c:1299
#5 0x0005f4f0 in build_aggr_init_full_exprs (decl=0x4012b268,
init=0x40132520, flags=0) at ../../gcc/gcc/cp/decl.c:4978
#6 0x000705f8 in check_initializer (decl=0x4012b268, init=0x40132520,
flags=0, cleanup=0xfb6d7fc8) at ../../gcc/gcc/cp/decl.c:5088
#7 0x000718e4 in cp_finish_decl (decl=0x4012b268, init=0x40132520,
init_const_expr_p=0 '\0', asmspec_tree=<value optimized out>,
flags=-343597384) at ../../gcc/gcc/cp/decl.c:5579
#8 0x00072f44 in finish_decl (decl=0x0, init=0x4012ad00, asmspec_tree=0xb)
at ../../gcc/gcc/cp/decl.c:5739
#9 0x00028934 in finish_var_decl (var=0x0, initializer=0x4012ad00)
at ../../gcc/gcc/objc/objc-act.c:1484
---Type <return> to continue, or q <return> to quit---
#10 0x00039864 in finish_objc () at ../../gcc/gcc/objc/objc-act.c:9170
#11 0x0003a578 in objc_finish_file () at ../../gcc/gcc/objc/objc-act.c:542
#12 0x00204118 in c_common_parse_file (set_yydebug=<value optimized out>)
at ../../gcc/gcc/c-opts.c:1264
#13 0x004b4154 in toplev_main (argc=<value optimized out>,
argv=<value optimized out>) at ../../gcc/gcc/toplev.c:965
#14 0x40474254 in __libc_start_main () from /lib/libc.so.6
#15 0x00021058 in _start ()
(gdb) p/x $pc
$1 = 0x15134c
(gdb) disass 0x15133c 0x15135c
Dump of assembler code from 0x15133c to 0x15135c:
0x0015133c <convert_for_initialization+140>: cmpib,= b,ret0,0x151698
<convert_for_initialization+1000>
0x00151340 <convert_for_initialization+144>: ldi 90,ret0
0x00151344 <convert_for_initialization+148>: cmpb,=,n ret0,r20,0x151698
<convert_for_initialization+1000>
0x00151348 <convert_for_initialization+152>: ldw 10(r3),r5
0x0015134c <convert_for_initialization+156>: ldh 0(r5),r20
0x00151350 <convert_for_initialization+160>: cmpib,= f,r20,0x15146c
<convert_for_initialization+444>
0x00151354 <convert_for_initialization+164>: ldi 14,ret0
0x00151358 <convert_for_initialization+168>: cmpb,= ret0,r20,0x151540
<convert_for_initialization+656>
End of assembler dump.
(gdb) p/x $r5
$2 = 0x0
(gdb) p debug_tree (rhs)
<constructor 0x40132520 readonly constant static tree_4 lngt 5
val <integer_cst 0x401323e0 type <integer_type 0x400963a8 long int>
constant 0>
val <nop_expr 0x40132440
type <pointer_type 0x4012aea0 type <pointer_type 0x40123ea0>
unsigned SI
size <integer_cst 0x40088780 constant 32>
unit size <integer_cst 0x40088520 constant 4>
align 32 symtab 0 alias set -1 canonical type 0x4012aea0>
constant
arg 0 <addr_expr 0x40132420 type <pointer_type 0x4012a958>
constant arg 0 <var_decl 0x4012b000 _OBJC_SELECTOR_TABLE>>>
val <integer_cst 0x40088ee0 type <integer_type 0x400962d8 int> constant 0>
val <integer_cst 0x40088ee0 0>
val <constructor 0x401324e0 readonly constant static tree_4 lngt 1 val
<integer_cst 0x40088ee0 0>>>
$3 = void
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |danglin at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-07-08 22:39:54
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36723