https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153
Peter Boyle <paboyle at ph dot ed.ac.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|5.1.0 |6.0 --- Comment #4 from Peter Boyle <paboyle at ph dot ed.ac.uk> --- Also fails in HEAD prog.cc:53:14: warning: unused parameter 'argc' [-Wunused-parameter] int main(int argc,char **argv) ^ prog.cc:53:26: warning: unused parameter 'argv' [-Wunused-parameter] int main(int argc,char **argv) ^ ' Internal compiler error: Error reporting routines re-entered. 0x5ccf96 push_tinst_level_loc(tree_node*, unsigned int) /home/heads/gcc/gcc-source/gcc/cp/pt.c:8464 0x5e8409 push_tinst_level(tree_node*) /home/heads/gcc/gcc-source/gcc/cp/pt.c:8448 0x5e8409 fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, bool, bool) /home/heads/gcc/gcc-source/gcc/cp/pt.c:16238 0x5a5be9 add_template_candidate_real /home/heads/gcc/gcc-source/gcc/cp/call.c:3057 0x5a626c add_template_candidate /home/heads/gcc/gcc-source/gcc/cp/call.c:3154 0x5a626c add_candidates /home/heads/gcc/gcc-source/gcc/cp/call.c:5281 0x5a8843 perform_overload_resolution /home/heads/gcc/gcc-source/gcc/cp/call.c:3999 0x5a9d0a build_new_function_call(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool, int) /home/heads/gcc/gcc-source/gcc/cp/call.c:4076 0x67114a finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool, bool, int) /home/heads/gcc/gcc-source/gcc/cp/semantics.c:2410 0x5d478d tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /home/heads/gcc/gcc-source/gcc/cp/pt.c:15201 0x5d5308 tsubst(tree_node*, tree_node*, int, tree_node*) /home/heads/gcc/gcc-source/gcc/cp/pt.c:12512 0x60dd50 dump_template_bindings /home/heads/gcc/gcc-source/gcc/cp/error.c:369 0x60dd50 dump_substitution /home/heads/gcc/gcc-source/gcc/cp/error.c:1448 0x60f866 decl_to_string /home/heads/gcc/gcc-source/gcc/cp/error.c:2910 0x60f866 cp_printer /home/heads/gcc/gcc-source/gcc/cp/error.c:3491 0xfd6a10 pp_format(pretty_printer*, text_info*) /home/heads/gcc/gcc-source/gcc/pretty-print.c:613 0xfd7780 pp_format_verbatim(pretty_printer*, text_info*) /home/heads/gcc/gcc-source/gcc/pretty-print.c:672 0xfd7854 pp_verbatim(pretty_printer*, char const*, ...) /home/heads/gcc/gcc-source/gcc/pretty-print.c:873 0x609eda print_instantiation_partial_context_line /home/heads/gcc/gcc-source/gcc/cp/error.c:3290 0x609eda print_instantiation_partial_context /home/heads/gcc/gcc-source/gcc/cp/error.c:3400 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.