This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14389] Out-of-line of overloaded template rejected
- 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: 2 Mar 2004 20:25:01 -0000
- Subject: [Bug c++/14389] Out-of-line of overloaded template rejected
- References: <20040302191442.14389.fasbjx@free.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-02 20:24 -------
And here is the backtrace for the tree-ssa:
#0 0x9002c878 in exit ()
#1 0x002b5560 in diagnostic_report_diagnostic (context=0x2b5560, diagnostic=0x27f464) at /
Users/pinskia/src/gcc-tree-ssa/gcc/gcc/diagnostic.c:360
#2 0x002b5560 in diagnostic_report_diagnostic (context=0x9d7ad0, diagnostic=0xbfffefc0) at /
Users/pinskia/src/gcc-tree-ssa/gcc/gcc/diagnostic.c:360
#3 0x002b5bf8 in internal_error (msgid=0x8be3f0 "tree check: accessed elt %d of tree_vec with %d
elts in %s, at %s:%d") at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/diagnostic.c:538
#4 0x0028bb1c in tree_vec_elt_check_failed (idx=1, len=1, file=0x8a4ae0 "/Users/pinskia/src/gcc-
tree-ssa/gcc/gcc/cp/pt.c", line=6729, function=0x8a6254 "tsubst") at /Users/pinskia/src/gcc-tree-
ssa/gcc/gcc/tree.c:4929
#5 0x0009b290 in tsubst (t=0x41772934, args=0x41774060, complain=tf_error,
in_decl=0x41770174) at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/cp/pt.c:6729
#6 0x000934dc in tsubst_template_arg (t=0x41772934, args=0x41774060, complain=tf_error,
in_decl=0x41770174) at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/cp/pt.c:5684
#7 0x00093780 in tsubst_template_args (t=0x416bbdc0, args=0x41774060, complain=tf_error,
in_decl=0x41770174) at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/cp/pt.c:5735
#8 0x00096cec in tsubst_decl (t=0x41770174, args=0x41774060, type=0x4176ed14,
complain=tf_error) at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/cp/pt.c:6080
#9 0x0009a244 in tsubst (t=0x41770174, args=0x41774060, complain=tf_error,
in_decl=0x4177026c) at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/cp/pt.c:6634
#10 0x000acb94 in instantiate_template (tmpl=0x4177026c, targ_ptr=0x41774060,
complain=tf_error) at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/cp/pt.c:8697
#11 0x00076568 in check_explicit_specialization (declarator=0x416a84ec, decl=0x41772d90,
template_count=0, flags=0) at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/cp/pt.c:1901
#12 0x00041fb0 in grokfndecl (ctype=0x4176e744, type=0x4176ed14, declarator=0x4176fd40,
orig_declarator=0x416a84ec, virtualp=0, flags=NO_SPECIAL, quals=0x0, raises=0x0, check=1,
friendp=0, publicp=1, inlinep=0, funcdef_flag=0, template_count=0, in_namespace=0x0) at /Users/
pinskia/src/gcc-tree-ssa/gcc/gcc/cp/decl.c:5684
#13 0x0004e8bc in grokdeclarator (declarator=0x416a84ec, declspecs=0x41769f78,
decl_context=NORMAL, initialized=0, attrlist=0x0) at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/cp/
decl.c:8345
#14 0x00132f14 in cp_parser_explicit_instantiation (parser=0x4176e6c8) at /Users/pinskia/src/gcc-
tree-ssa/gcc/gcc/cp/parser.c:8681
#15 0x0012f4a8 in cp_parser_declaration (parser=0x4176e6c8) at /Users/pinskia/src/gcc-tree-ssa/
gcc/gcc/cp/parser.c:6444
#16 0x0012f318 in cp_parser_declaration_seq_opt (parser=0x4176e6c8) at /Users/pinskia/src/gcc-
tree-ssa/gcc/gcc/cp/parser.c:6382
#17 0x001290a4 in cp_parser_translation_unit (parser=0x4176e6c8) at /Users/pinskia/src/gcc-tree-
ssa/gcc/gcc/cp/parser.c:2383
#18 0x00140a70 in c_parse_file () at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/cp/parser.c:15370
#19 0x00252218 in c_common_parse_file (set_yydebug=0) at /Users/pinskia/src/gcc-tree-ssa/gcc/
gcc/c-opts.c:1234
#20 0x002ae750 in compile_file () at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/toplev.c:1869
#21 0x002b47e4 in do_compile () at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/toplev.c:4570
#22 0x002b48c8 in toplev_main (argc=2, argv=0xbffffca0) at /Users/pinskia/src/gcc-tree-ssa/gcc/
gcc/toplev.c:4610
#23 0x00269da0 in main (argc=2, argv=0xbffffca0) at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/
main.c:35
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Keywords| |ice-on-valid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14389