This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/12103] [3.4 Regression] -g only crash (segfault) with a forward declared class used as a template parameter
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Nov 2003 03:16:27 -0000
- Subject: [Bug debug/12103] [3.4 Regression] -g only crash (segfault) with a forward declared class used as a template parameter
- References: <20030829113436.12103.ritzert@t-online.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-09 03:16 -------
#2 0x081d1692 in add_data_member_location_attribute (die=0x4012a320, decl=
0x40127e40) at /home/gates/pinskia/src/gnu/gcc/src/gcc/dwarf2out.c:90349034
offset = tree_low_cst (BINFO_VPTR_FIELD (decl), 0);(gdb) l9029 /* Extract the
vtable address. */9030 tmp = new_loc_descr (DW_OP_deref, 0, 0);9031
add_loc_descr (&loc_descr, tmp);90329033 /* Calculate the address of the offset.
*/9034 offset = tree_low_cst (BINFO_VPTR_FIELD (decl), 0);9035 if (offset
>= 0)9036 abort ();90379038 tmp = int_loc_descriptor (-offset);(gdb) p
decl$1 = 0x40127e40(gdb) p debug_tree(decl) <tree_vec 0x40127e40 type <
record_type 0x401289b4 obj addressable tree_2 needs-constructing type_1 type_5 BLK
size <integer_cst 0x4004e9b0 constant 32> unit size <integer_cst 0x4004ea00
constant 4> align 32 symtab 1074963272 alias set -1 fields <field_decl
0x40129b64 _vptr.obj type <pointer_type 0x400bb654> unsigned virtual SI file
pr12103.cc line 11 size <integer_cst 0x4004e9b0 32> unit size <integer_cst
0x4004ea00 4> align 32 offset_align 128 offset <integer_cst 0x4004ea14
constant 0> bit offset <integer_cst 0x4004eab4 constant 0> context <record_type
0x401289b4 obj> arguments <integer_cst 0x4004ea14 0> chain <type_decl
0x40128b64 obj>> needs-constructor X() X(constX&) this=(X&) n_parents 0
use_template=0 interface-unknown member-functions <tree_vec 0x40127c80
elt 0 <overload 0x4011b880> elt 2 <function_decl 0x40129654 operator=>
elt 3 <overload 0x4011b8c0> elt 4 <overload 0x4011b8a0> elt 5 <
function_decl 0x40128d14 yeah>> pointer_to_this <pointer_type 0x40128a8c>
reference_to_this <reference_type 0x40129438> chain <type_decl 0x40128af8 obj>>
static tree_4 elt 0 <tree_vec 0x40127a80> elt 1 <integer_cst 0x4004ea14 0> elt 3 <
tree_list 0x4012b80c> elt 9 <tree_vec 0x40127a80>>$2 = void
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-08-29 13:18:32 |2003-11-09 03:16:26
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12103