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] Improve compute_array_index_type locations


On 11/29/18 2:09 PM, Paolo Carlini wrote:
Hi,

On 29/11/18 17:13, Jason Merrill wrote:
+ error_at (cp_expr_loc_or_loc (osize, loc),
....
+        error_at (cp_expr_loc_or_loc (osize, input_location),

Let's compute the location we want to use once at the top of the function.  And maybe rename the 'loc' parameter to name_loc.

Makes sense. Thus I tested the attached.

OK.

Jason


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