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 c++/10952] ICE (segfault) in redeclare_class_template at cp/pt.c:2999


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia@physics.uc.edu  2003-06-14 22:59 -------
Even 2.91.66 ice.
Here is the backtrace for the mainline (20030614):

redeclare_class_template (type=0x400a8510, parms=0x0) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/cp/pt.c:3017
3017      parms = INNERMOST_TEMPLATE_PARMS (parms);
(gdb) bt
#0  redeclare_class_template (type=0x400a8510, parms=0x0) at /home/gates/pinskia/
src/gnu/gcc/src/gcc/cp/pt.c:3017
#1  0x0808037d in xref_tag (tag_code=class_type, name=0x40050144, attributes=
0x40099f8c, globalize=false) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/decl.c:12768
#2  0x08101cf3 in cp_parser_class_head (parser=0x400aa480, 
nested_name_specifier_p=0xbffec22b) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/
parser.c:11763
#3  0x081012d9 in cp_parser_class_specifier (parser=0x400aa480) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/cp/parser.c:11431
#4  0x080fe1fb in cp_parser_type_specifier (parser=0x400aa480, flags=
CP_PARSER_FLAGS_NONE, is_friend=false, is_declaration=true, 
declares_class_or_enum=0xbffec2ae, is_cv_qualifier=0xbffec2af) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/cp/parser.c:8472
#5  0x080fc75d in cp_parser_decl_specifier_seq (parser=0x400aa480, flags=
CP_PARSER_FLAGS_NONE, attributes=0xbffec2f4, declares_class_or_enum=
0xbffec2fb) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:6802
#6  0x081005d4 in cp_parser_parameter_declaration (parser=0x400aa480, 
template_parm_p=true) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:10721
#7  0x080fd330 in cp_parser_template_parameter (parser=0x400aa480) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/cp/parser.c:7733
#8  0x080fd292 in cp_parser_template_parameter_list (parser=0x400aa480) at /home/
gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:7661
#9  0x08104674 in cp_parser_template_declaration_after_export (parser=0x400aa480, 
member_p=false) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:13893
#10 0x080fc2d2 in cp_parser_declaration (parser=0x400aa480) at /home/gates/pinskia/
src/gnu/gcc/src/gcc/cp/parser.c:6404
#11 0x080fc0e8 in cp_parser_declaration_seq_opt (parser=0x400aa480) at /home/
gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:6337
#12 0x080f7b12 in cp_parser_translation_unit (parser=0x400aa480) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/cp/parser.c:2256
#13 0x08105742 in yyparse () at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/
parser.c:14671
#14 0x0817dd06 in c_common_parse_file (set_yydebug=1074372492) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/c-opts.c:1203
#15 0x083b3e1a in compile_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/
toplev.c:2214
#16 0x083b9f47 in do_compile () at /home/gates/pinskia/src/gnu/gcc/src/gcc/
toplev.c:5742
#17 0x083b9fb9 in toplev_main (argc=1074372492, argv=0x0) at /home/gates/pinskia/
src/gnu/gcc/src/gcc/toplev.c:5771
#18 0x08181c9b in main (argc=1074372492, argv=0x40099f8c) at /home/gates/pinskia/
src/gnu/gcc/src/gcc/main.c:37


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