This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] Emit error + inform for access control issues


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]