From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111691 invoked by alias); 7 Apr 2015 09:35:58 -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 111680 invoked by uid 89); 7 Apr 2015 09:35:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 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 (AES256-SHA encrypted) ESMTPS; Tue, 07 Apr 2015 09:35:55 +0000 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t379ZrE5007878 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 7 Apr 2015 09:35:53 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t379ZpS6009037 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 7 Apr 2015 09:35:52 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t379Zp7w005462; Tue, 7 Apr 2015 09:35:51 GMT Received: from [192.168.1.4] (/79.37.217.35) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 07 Apr 2015 02:35:50 -0700 Message-ID: <5523A4F4.9000405@oracle.com> Date: Tue, 07 Apr 2015 09:35:00 -0000 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Jason Merrill , "gcc-patches@gcc.gnu.org" Subject: Re: [C++ Patch] Emit error + inform for access control issues References: <551FE078.2020904@oracle.com> <5522932C.1000803@redhat.com> In-Reply-To: <5522932C.1000803@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00222.txt.bz2 Hi, On 04/06/2015 04:07 PM, Jason Merrill wrote: > On 04/04/2015 09:00 AM, Paolo Carlini wrote: >> error ("%q+#D is inaccessible", diag_decl); >> - error ("within this context"); >> + inform (input_location, "within this context"); > > This is the wrong error to change to inform; we want the error to be > associated with the point of use, not the declaration of the member. Yeah, I see what you mean. That requires a rewording however, let me see... Paolo.