From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81129 invoked by alias); 6 Apr 2015 14:07:45 -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 81119 invoked by uid 89); 6 Apr 2015 14:07:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 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; Mon, 06 Apr 2015 14:07:44 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 308FE8EA49; Mon, 6 Apr 2015 14:07:43 +0000 (UTC) Received: from [10.10.116.19] ([10.10.116.19]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t36E7gCP024358; Mon, 6 Apr 2015 10:07:42 -0400 Message-ID: <5522932C.1000803@redhat.com> Date: Mon, 06 Apr 2015 14:07:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Paolo Carlini , "gcc-patches@gcc.gnu.org" Subject: Re: [C++ Patch] Emit error + inform for access control issues References: <551FE078.2020904@oracle.com> In-Reply-To: <551FE078.2020904@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-04/txt/msg00192.txt.bz2 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. Jason