From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88827 invoked by alias); 6 Jul 2017 18:26:44 -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 88787 invoked by uid 89); 6 Jul 2017 18:26:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.2 spammy=whereby, Hx-languages-length:903 X-HELO: mail-it0-f50.google.com Received: from mail-it0-f50.google.com (HELO mail-it0-f50.google.com) (209.85.214.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Jul 2017 18:26:40 +0000 Received: by mail-it0-f50.google.com with SMTP id m68so10764220ith.1 for ; Thu, 06 Jul 2017 11:26:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=8gjGryI3LOcTCatOwNcNfQlowQTDatcZOR3WgPJa7wg=; b=L0/MjTGAkRhQXXbyMf9VWghEjy/BQ5CN1BfVgkJlXv7jImQRfmxIlV9+s1hNNIspZK UDyM9tAG//aOVtsVVjmVyH2lUn8VhMTmq0+Y7saPZxHDZCI4ULRs3Vs0Ma/Kk7ZniUXT u+cijQyhh/PabkVDB1BVJoz+mf2v0oUV3ni67vSQa4oZWFlaiJVuCA9XwVpd19jE35UR VrD2mR0H5ICUR13sbh8b086ksP/X3c8sRm7v7UhT+0R1vfHLii+azDZiFRmQZ/hhCpSs qXEjJlYBmGf6aAqxJfl4fmw78hyhS1qhV818j2XKQniKvWB+X1NEym29XSo+rZIuSkJJ u1pA== X-Gm-Message-State: AIVw111W3o9R9dNAjw1khjeQTLbJ1jvl0fpPDupOtSvOCNH+MX0O8P2T Inz9JQFGQBKy5t46RlQH0+bKeHvpXQ3YG9o= X-Received: by 10.107.37.5 with SMTP id l5mr7383570iol.182.1499365598789; Thu, 06 Jul 2017 11:26:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.11.105 with HTTP; Thu, 6 Jul 2017 11:26:18 -0700 (PDT) In-Reply-To: References: From: Jason Merrill Date: Thu, 06 Jul 2017 18:26:00 -0000 Message-ID: Subject: Re: C++ PATCHes to dependent template-id parsing To: gcc-patches List Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00342.txt.bz2 On Wed, Jun 28, 2017 at 3:38 PM, Jason Merrill wrote: > 81204 is a regression whereby previously we would accidentally get the > parsing of res.template set right because when we did the lookup in > the surrounding context, we found the function template and then > ignored it. This patch partially reverts the handling of .template to > how it was in GCC 6. > > But this bug is really a special case of 54769; we should be treating > that name as dependent and not doing a lookup in the enclosing context > at all. As I noted in discussion of 55576, we need to pass > template_keyword_p into nested_name_specifier_opt. So this patch does > that, and also adjusts cp_parser_template_name to consider object > scope. I'm reverting the 81204 patch for both 7 and 8, as it is wrong under DR 141 and the 54769 patch is better. Jason