From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11713 invoked by alias); 25 Feb 2014 06:45:33 -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 11676 invoked by uid 55); 25 Feb 2014 06:45:29 -0000 From: "abutcher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60311] [c++1y] ICE with pointer-to-function with auto parameter Date: Tue, 25 Feb 2014 06:45: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: 4.9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: abutcher at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: 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: 2014-02/txt/msg02485.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60311 --- Comment #1 from Adam Butcher --- Author: abutcher Date: Tue Feb 25 06:44:53 2014 New Revision: 208111 URL: http://gcc.gnu.org/viewcvs?rev=208111&root=gcc&view=rev Log: Fix PR c++/60311. PR c++/60311 * parser.c (function_being_declared_is_template_p): Return false when processing a template parameter list. (cp_parser_parameter_declaration_clause): Don't set auto_is_implicit_function_template_parm_p when processing a template parameter list. PR c++/60311 * g++.dg/cpp1y/pr60311.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/cpp1y/pr60311.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog