------- Comment #3 from jamborm at gcc dot gnu dot org 2010-09-21 17:08 ------- This is the full backtrace:
#0 0x081e945d in cp_build_unary_op (code=ADDR_EXPR, xarg=0xb76d0dac, noconvert=0, complain=3) at /home/mjambor/gcc/icln/gcc/cp/typeck.c:5091 #1 0x080d10b3 in build_this (obj=0xb76d7898) at /home/mjambor/gcc/icln/gcc/cp/call.c:2738 #2 0x080dfaf5 in build_new_method_call (instance=0xb76d0dac, fns=0xb76d0dc8, args=0xbfffe8d0, conversion_path=0xb776e000, flags=3, fn_p=0x0, complain=0) at /home/mjambor/gcc/icln/gcc/cp/call.c:6482 #3 0x0812f34c in tsubst_copy_and_build (t=0xb76d1774, args=0xb775de88, complain=0, in_decl=0x0, function_p=0 '\000', integral_constant_expression_p=0 '\000') at /home/mjambor/gcc/icln/gcc/cp/pt.c:12587 #4 0x0813a8b6 in tsubst_expr (t=0xb76d1774, args=<value optimized out>, complain=<value optimized out>, in_decl=0x0, integral_constant_expression_p=<value optimized out>) at /home/mjambor/gcc/icln/gcc/cp/pt.c:12069 #5 0x08132dbc in tsubst (t=0xb7763f60, args=0xb775de88, complain=0, in_decl=0x0) at /home/mjambor/gcc/icln/gcc/cp/pt.c:10697 #6 0x081a7e24 in dump_template_bindings (typenames=<value optimized out>, args=<value optimized out>, parms=<value optimized out>) at /home/mjambor/gcc/icln/gcc/cp/error.c:315 #7 dump_function_decl (typenames=<value optimized out>, args=<value optimized out>, parms=<value optimized out>) at /home/mjambor/gcc/icln/gcc/cp/error.c:1346 #8 0x081a95f8 in decl_as_string (decl=0xb7766a80, flags=4) at /home/mjambor/gcc/icln/gcc/cp/error.c:2372 #9 0x08233b8b in cxx_printable_name_internal (decl=0xb7766a80, v=0, translate=152 '\230') at /home/mjambor/gcc/icln/gcc/cp/tree.c:1445 #10 0x0843aba9 in current_function_name () at /home/mjambor/gcc/icln/gcc/function.c:5635 #11 0x08668ed0 in dump_enumerated_decls (file=0x8d8c670, flags=1048576) at /home/mjambor/gcc/icln/gcc/tree-ssa-live.c:1268 #12 0x0860387c in execute_cleanup_cfg_post_optimizing () at /home/mjambor/gcc/icln/gcc/tree-optimize.c:214 #13 0x084fe5e9 in execute_one_pass (pass=0x8c42820) at /home/mjambor/gcc/icln/gcc/passes.c:1573 #14 0x084fe89d in execute_pass_list (pass=0x8c42820) at /home/mjambor/gcc/icln/gcc/passes.c:1628 #15 0x08603a8a in tree_rest_of_compilation (fndecl=0xb7766a80) at /home/mjambor/gcc/icln/gcc/tree-optimize.c:452 #16 0x087afdbc in cgraph_expand_function (node=<value optimized out>) at /home/mjambor/gcc/icln/gcc/cgraphunit.c:1477 #17 0x087b3051 in cgraph_expand_all_functions () at /home/mjambor/gcc/icln/gcc/cgraphunit.c:1556 #18 cgraph_optimize () at /home/mjambor/gcc/icln/gcc/cgraphunit.c:1812 #19 0x087b368a in cgraph_finalize_compilation_unit () at /home/mjambor/gcc/icln/gcc/cgraphunit.c:1020 #20 0x0819bebb in cp_write_global_declarations () at /home/mjambor/gcc/icln/gcc/cp/decl2.c:3928 #21 0x085a2894 in compile_file () at /home/mjambor/gcc/icln/gcc/toplev.c:967 #22 do_compile () at /home/mjambor/gcc/icln/gcc/toplev.c:2394 #23 0x085a3062 in toplev_main (argc=21, argv=0xbfffef64) at /home/mjambor/gcc/icln/gcc/toplev.c:2435 #24 0x082ca5eb in main (argc=21, argv=0xbfffef64) at /home/mjambor/gcc/icln/gcc/main.c:36 It seems that some template bindings get built when we try to dump the current function for the compare-debug dump (required to get the ICE), which is so late in the compilation process that cp front-end cannot handle it somehow. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45562