From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25541 invoked by alias); 23 May 2015 12:47:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 25511 invoked by uid 48); 23 May 2015 12:47:35 -0000 From: "paboyle at ph dot ed.ac.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66153] Internal compiler error in nested template function Date: Sat, 23 May 2015 12:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: paboyle at ph dot ed.ac.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: version Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg01985.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 Peter Boyle changed: What |Removed |Added ---------------------------------------------------------------------------- Version|5.1.0 |6.0 --- Comment #4 from Peter Boyle --- 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**, bool, int) /home/heads/gcc/gcc-source/gcc/cp/call.c:4076 0x67114a finish_call_expr(tree_node*, vec**, 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 for instructions.