[C++ PATCH] Improve locations of id-expressions and operator "" (PR c++/87386, take 3)

Jason Merrill jason@redhat.com
Wed Nov 21 22:34:00 GMT 2018


On 11/21/18 5:10 PM, Jakub Jelinek wrote:
> On Wed, Nov 21, 2018 at 07:49:48PM +0100, Jakub Jelinek wrote:
>> So, do you suggest we should instead return
>> operator new
>> ^~~~~~~~~~~~
>> operator delete []
>> ^~~~~~~~~~~~~~~~~~
>> operator ==
>> ^~~~~~~~~~~
>> operator "" _foo
>> ^~~~~~~~~~~~~~~~
>> ?
>> That would mean cp_parser_operator_function_id would need to pass
>> location_t start_loc (the start of the operator token) to cp_parser_operator and
>> let that create a range in all cases rather than just for operator
>> new/delete.
> 
> This version of the patch implements that.
> 
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?

OK.

Jason



More information about the Gcc-patches mailing list