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++/50303] [C++0x] Segfault with variadic template template parameters


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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de

--- Comment #5 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-09-15 07:06:19 UTC ---
Program received signal SIGSEGV, Segmentation fault.
[Switching to process 30771]
tsubst_template_parms (parms=0x0, args=0x7ffff77a6d98, complain=3) at
../../gcc/gcc/cp/pt.c:9507
9507           TMPL_PARMS_DEPTH (parms) > TMPL_ARGS_DEPTH (args);

(gdb) bt
#0  tsubst_template_parms (parms=0x0, args=0x7ffff77a6d98, complain=3) at
../../gcc/gcc/cp/pt.c:9507
#1  0x00000000004c6d9a in tsubst_decl (t=0x7ffff77a7e60, args=0x7ffff77a6d98,
complain=3) at ../../gcc/gcc/cp/pt.c:9789
#2  0x00000000004c3ce5 in tsubst (in_decl=<optimized out>, complain=3,
args=0x7ffff77a6d98, t=0x7ffff77a7e60) at ../../gcc/gcc/cp/pt.c:10851
#3  tsubst (t=0x7ffff77a7e60, args=0x7ffff77a6d98, complain=3,
in_decl=<optimized out>) at ../../gcc/gcc/cp/pt.c:10836
#4  0x00000000004c821f in tsubst_pack_expansion (t=0x7ffff77afe70,
args=0x7ffff77a6f78, complain=3, in_decl=0x7ffff77a7f18)
    at ../../gcc/gcc/cp/pt.c:9298
#5  0x00000000004c656b in tsubst_template_args (t=0x7ffff77a6ac8,
args=0x7ffff77a6d98, complain=3, in_decl=0x7ffff77a7f18)
    at ../../gcc/gcc/cp/pt.c:9400
#6  0x00000000004c1e46 in tsubst_copy_and_build (t=0x7ffff7fd9a50,
args=0x7ffff77a6d98, complain=3, in_decl=0x7ffff77a7f18, function_p=1 '\001', 
    integral_constant_expression_p=<optimized out>) at
../../gcc/gcc/cp/pt.c:13035
#7  0x00000000004c1c9e in tsubst_copy_and_build (t=0x7ffff77bd038,
args=0x7ffff77a6d98, complain=3, in_decl=0x7ffff77a7f18, function_p=0 '\000', 
    integral_constant_expression_p=0 '\000') at ../../gcc/gcc/cp/pt.c:13390
#8  0x00000000004bd239 in tsubst_expr (t=0x7ffff77bd038, args=0x7ffff77a6d98,
complain=3, in_decl=0x7ffff77a7f18, 
    integral_constant_expression_p=0 '\000') at ../../gcc/gcc/cp/pt.c:12935
#9  0x00000000004bdc70 in tsubst_expr (t=0x7ffff77a6b40, args=0x7ffff77a6d98,
complain=3, in_decl=0x7ffff77a7f18, 
    integral_constant_expression_p=0 '\000') at ../../gcc/gcc/cp/pt.c:12467
#10 0x00000000004bd2b1 in tsubst_expr (t=0x7ffff77bd000, args=0x7ffff77a6d98,
complain=3, in_decl=0x7ffff77a7f18, 
    integral_constant_expression_p=0 '\000') at ../../gcc/gcc/cp/pt.c:12632
#11 0x00000000004d0ccc in instantiate_decl (d=0x7ffff77aee00,
defer_ok=<optimized out>, expl_inst_class_mem_p=<optimized out>)
    at ../../gcc/gcc/cp/pt.c:18305
#12 0x00000000004d34dc in instantiate_pending_templates (retries=<optimized
out>) at ../../gcc/gcc/cp/pt.c:18402
#13 0x00000000004e8a4d in cp_write_global_declarations () at
../../gcc/gcc/cp/decl2.c:3713
#14 0x00000000007f11c2 in compile_file () at ../../gcc/gcc/toplev.c:564
#15 do_compile () at ../../gcc/gcc/toplev.c:1886
#16 toplev_main (argc=13, argv=0x7fffffffdf28) at ../../gcc/gcc/toplev.c:1962
#17 0x00007ffff7b81f82 in __libc_start_main (main=0x5a11b0 <main>, argc=13,
ubp_av=0x7fffffffdf28, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7fffffffdf18) at libc-start.c:226
#18 0x000000000048cf89 in _start () at ../sysdeps/x86_64/elf/start.S:113
(gdb)


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