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++/13243] Segfault on illegal template construct


------- Additional Comments From dberlin at gcc dot gnu dot org  2003-11-30 18:17 -------
Full backtrace of where args comes from:


Program received signal SIGSEGV, Segmentation fault.
0x080b1931 in tsubst (t=0x400052e0, args=0x0, complain=tf_error, in_decl=0x0)
    at ../../gcc/cp/pt.c:6672
6672            if (TREE_VEC_LENGTH (args) > 0)
(gdb) up
#1  0x080b6ed0 in tsubst_copy (t=0x400052e0, args=0x0, complain=tf_error, 
    in_decl=0x0) at ../../gcc/cp/pt.c:7636
7636          return tsubst (t, args, complain, in_decl);
(gdb) up
#2  0x080badca in tsubst_copy_and_build (t=0x4000e348, args=0x0, 
    complain=tf_error, in_decl=0x0, function_p=false) at ../../gcc/cp/pt.c:8208
8208          if (tsubst_copy (TREE_OPERAND (t, 0), args, complain, in_decl)
(gdb) up
#3  0x0811fa10 in cp_parser_fold_non_dependent_expr (expr=0x4000e348)
    at ../../gcc/cp/parser.c:14165
14165         expr = tsubst_copy_and_build (expr,
(gdb) l
14160       {
14161         HOST_WIDE_INT saved_processing_template_decl;
14162
14163         saved_processing_template_decl = processing_template_decl;
14164         processing_template_decl = 0;
14165         expr = tsubst_copy_and_build (expr,
14166                                       /*args=*/NULL_TREE,
14167                                       tf_error,
14168                                       /*in_decl=*/NULL_TREE,
14169                                       /*function_p=*/false);


-- 


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


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