From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27951 invoked by alias); 2 Jun 2017 08:35:05 -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 27938 invoked by uid 89); 2 Jun 2017 08:35:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.1 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_ASCII_DIVIDERS,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=manuel, Manuel X-HELO: aserp1040.oracle.com Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Jun 2017 08:35:02 +0000 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v528Z3ci003337 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 2 Jun 2017 08:35:04 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.13.8/8.14.4) with ESMTP id v528Z34t011525 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 2 Jun 2017 08:35:03 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v528Z2do013532; Fri, 2 Jun 2017 08:35:02 GMT Received: from [192.168.1.4] (/79.13.225.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 02 Jun 2017 01:35:02 -0700 To: "gcc-patches@gcc.gnu.org" Cc: Jason Merrill From: Paolo Carlini Subject: [C++ Patch] PR 62315 ("do not print typename in diagnostic if the original code does not have it") Message-ID: <689cbd6e-7974-4aa9-9361-9f04f920d9a8@oracle.com> Date: Fri, 02 Jun 2017 08:35:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------E7DA4D39F57CA08ED1BFE659" X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00099.txt.bz2 This is a multi-part message in MIME format. --------------E7DA4D39F57CA08ED1BFE659 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-length: 279 Hi, a while ago Manuel noticed that printing 'typename' in error messages about missing 'typename' can be confusing. That seems easy to fix, in fact we already handle correctly a similar situation in grokdeclarator. Tested x86_64-linux. Thanks, Paolo. ////////////////// --------------E7DA4D39F57CA08ED1BFE659 Content-Type: text/plain; charset=UTF-8; name="CL_62315" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="CL_62315" Content-length: 448 L2NwCjIwMTctMDYtMDIgIFBhb2xvIENhcmxpbmkgIDxwYW9sby5jYXJsaW5p QG9yYWNsZS5jb20+CgoJUFIgYysrLzYyMzE1CgkqIHBhcnNlci5jIChjcF9w YXJzZXJfZGlhZ25vc2VfaW52YWxpZF90eXBlX25hbWUpOiBEb24ndCBwcmlu dAoJJ3R5cGVuYW1lJyBpbiBlcnJvciBtZXNzYWdlcyBhYm91dCBtaXNzaW5n ICd0eXBlbmFtZScuCgovdGVzdHN1aXRlCjIwMTctMDYtMDIgIFBhb2xvIENh cmxpbmkgIDxwYW9sby5jYXJsaW5pQG9yYWNsZS5jb20+CgoJUFIgYysrLzYy MzE1CgkqIGcrKy5kZy9wYXJzZS90eXBlZGVmMi5DOiBTcGVjaWZ5IGEgZGct ZXJyb3Igc3RyaW5nLgo= --------------E7DA4D39F57CA08ED1BFE659 Content-Type: text/plain; charset=UTF-8; name="patch_62315" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch_62315" Content-length: 2144 SW5kZXg6IHRlc3RzdWl0ZS9nKysuZGcvcGFyc2UvdHlwZWRlZjIuQwo9PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09Ci0tLSB0ZXN0c3VpdGUvZysrLmRnL3BhcnNl L3R5cGVkZWYyLkMJKHJldmlzaW9uIDI0ODc4MykKKysrIHRlc3RzdWl0ZS9n KysuZGcvcGFyc2UvdHlwZWRlZjIuQwkod29ya2luZyBjb3B5KQpAQCAtMSwz ICsxLDIgQEAKIHRlbXBsYXRlIDx0eXBlbmFtZSBUPiBzdHJ1Y3QgQiB7IHR5 cGVkZWYgdHlwZW5hbWUgVDo6WCBYOyB9OwotdGVtcGxhdGUgPHR5cGVuYW1l IFQ+IHN0cnVjdCBBIHsgdHlwZWRlZiBCPFQ+OjpYOjpZIFo7IH07IC8vIHsg ZGctZXJyb3IgIiIgfQotIAordGVtcGxhdGUgPHR5cGVuYW1lIFQ+IHN0cnVj dCBBIHsgdHlwZWRlZiBCPFQ+OjpYOjpZIFo7IH07IC8vIHsgZGctZXJyb3Ig ImJlZm9yZSAnQjxUPjo6WDo6WScgYmVjYXVzZSAnQjxUPjo6WCciIH0KSW5k ZXg6IGNwL3BhcnNlci5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGNw L3BhcnNlci5jCShyZXZpc2lvbiAyNDg3ODMpCisrKyBjcC9wYXJzZXIuYwko d29ya2luZyBjb3B5KQpAQCAtMzI3MCw5ICszMjcwLDIxIEBAIGNwX3BhcnNl cl9kaWFnbm9zZV9pbnZhbGlkX3R5cGVfbmFtZSAoY3BfcGFyc2VyICpwCiAJ fQogICAgICAgZWxzZSBpZiAoVFlQRV9QIChwYXJzZXItPnNjb3BlKQogCSAg ICAgICAmJiBkZXBlbmRlbnRfc2NvcGVfcCAocGFyc2VyL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