Re: [C++ Patch] Fix some simple location issues​ (2)

2016-06-14 Thread Jason Merrill
OK. Jason

Re: [C++ Patch] Fix some simple location issues

2016-06-08 Thread Jason Merrill
OK. Jason

Re: [C++ Patch] Fix some simple location issues

2016-06-07 Thread Paolo Carlini
Hi, On 07/06/2016 21:40, Jason Merrill wrote: For diagnostics about an initializer, I think it would be better to give the location of the initializer rather than the declaration. Maybe use location_t loc = EXPR_LOC_OR_LOC (init, DECL_SOURCE_LOCATION (decl)); Now that you are telling me this

Re: [C++ Patch] Fix some simple location issues

2016-06-07 Thread Jason Merrill
For diagnostics about an initializer, I think it would be better to give the location of the initializer rather than the declaration. Maybe use location_t loc = EXPR_LOC_OR_LOC (init, DECL_SOURCE_LOCATION (decl)); ? Jason