This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/12103] [3.4 Regression] -g only crash (segfault) with a forward declared class used as a template parameter


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-19 05:42 -------
Here is the full backtrace:
#0  0x083aa7fb in host_integerp (t=0x0, pos=0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
tree.c:3285
#1  0x083aa899 in tree_low_cst (t=0x0, pos=0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
tree.c:3303
#2  0x081d5942 in add_data_member_location_attribute (die=0x4012a320, decl=0x40127ec0) at 
/home/gates/pinskia/src/gnu/gcc/src/gcc/dwarf2out.c:9054
#3  0x081da319 in gen_type_die (type=0x4012857c, context_die=0x400b5ed8) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/dwarf2out.c:11243
#4  0x081d8a94 in gen_decl_die (decl=0x4012d948, context_die=0x400b5ed8) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/dwarf2out.c:10170
#5  0x081da8d0 in gen_type_die (type=0x4012872c, context_die=0x400b5dc0) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/dwarf2out.c:11301
#6  0x081d8d99 in gen_decl_die (decl=0x40128870, context_die=0x400b5dc0) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/dwarf2out.c:12004
#7  0x083a2909 in rest_of_type_compilation (type=0x4012872c, toplev=1) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/toplev.c:2024
#8  0x080cdab6 in finish_struct_1 (t=0x4012872c) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
cp/class.c:5200
#9  0x080acda9 in instantiate_class_template (type=0x4012872c) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/cp/pt.c:5583
#10 0x080f7d7e in complete_type (type=0x4012872c) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/cp/typeck.c:135
#11 0x0811ddc4 in lookup_base (t=0x40128948, base=0x40128948, access=6, 
kind_ptr=0xbffebed4) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/search.c:290
#12 0x080c5269 in dfs_modify_vtables (binfo=0x40127ec0, data=0x4012857c) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/cp/class.c:2199
#13 0x0811d0b8 in dfs_walk_real (binfo=0x40127ec0, prefn=0, postfn=0x80c4ba0 
<dfs_modify_vtables>, qfn=0x8120dc0 <unmarkedp>, data=0x4012857c)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/search.c:1670
#14 0x0811d090 in dfs_walk_real (binfo=0x40127b00, prefn=0, postfn=0x80c4ba0 
<dfs_modify_vtables>, qfn=0x8120dc0 <unmarkedp>, data=0x4012857c)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/search.c:1661
#15 0x0811d20c in dfs_walk (binfo=0x0, fn=0, qfn=0, data=0x0) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/cp/search.c:1684
#16 0x080cc297 in finish_struct_1 (t=0x4012857c) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
cp/class.c:2379
#17 0x080d1537 in finish_struct (t=0x4012857c, attributes=0x0) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/cp/class.c:5258
#18 0x080ea766 in cp_parser_type_specifier (parser=0x40127900, flags=1074967388, 
is_friend=false, is_declaration=true, declares_class_or_enum=0xbffec114,
    is_cv_qualifier=0x0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:11499
#19 0x080ec06e in cp_parser_decl_specifier_seq (parser=0x40127900, 
flags=CP_PARSER_FLAGS_OPTIONAL, attributes=0xbffec148, declares_class_or_enum=0xbffec14c)
    at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:6632
#20 0x080ec362 in cp_parser_simple_declaration (parser=0x40127900, 
function_definition_allowed_p=true) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:
6362
#21 0x080ec518 in cp_parser_block_declaration (parser=0x40127900, statement_p=false) at /
home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:6322
#22 0x080f1d9f in cp_parser_declaration (parser=0x40127900) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/cp/parser.c:6242
#23 0x080f205f in cp_parser_declaration_seq_opt (parser=0x40127900) at /home/gates/pinskia/
src/gnu/gcc/src/gcc/cp/parser.c:6151
#24 0x080f2217 in c_parse_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:2299
#25 0x0817e91e in c_common_parse_file (set_yydebug=0) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/c-opts.c:1227
#26 0x083a608d in toplev_main (argc=0, argv=0xbffec59b) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/toplev.c:1804
#27 0x081821ae in main (argc=0, argv=0x0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
main.c:35

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12103


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]