From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27918 invoked by alias); 25 Jun 2014 12:46:48 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 27902 invoked by uid 89); 25 Jun 2014 12:46:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 25 Jun 2014 12:46:47 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5PCkiK7022003 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Jun 2014 08:46:44 -0400 Received: from [10.10.116.23] ([10.10.116.23]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5PCkgqn006180; Wed, 25 Jun 2014 08:46:43 -0400 Message-ID: <53AAC4B2.3040905@redhat.com> Date: Wed, 25 Jun 2014 12:46:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Adam Butcher , Paolo Carlini CC: gcc-patches@gcc.gnu.org, Alexander Adam , Jonathan Wakely Subject: Re: [PATCH] Fix PR c++/61537 References: <1403566846-2565-1-git-send-email-adam@jessamine.co.uk> <53A9FA0F.2020005@oracle.com> <6e7aaced1d26c1cb5d72967ffd7dae39@imap.force9.net> In-Reply-To: <6e7aaced1d26c1cb5d72967ffd7dae39@imap.force9.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2014-06/txt/msg02006.txt.bz2 On 06/24/2014 07:04 PM, Adam Butcher wrote: > I've fixed these issues up in my tree and moved the test to g++.dg. Please put it in g++.dg/template; I'd prefer not to clutter the top directory. > + bool template_parm_lists_apply > + = parser->num_template_parameter_lists; > + for (cp_binding_level *s = current_binding_level; s; s = s->level_chain) > + if (s->kind == sk_function_parms) > + template_parm_lists_apply = false; Let's only start walking if there are template parameters, and stop walking when we reach them. Jason