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


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


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