Re: [C++ Patch] Fix a start_decl location

2019-01-07 Thread Jason Merrill
On 1/6/19 4:47 AM, Paolo Carlini wrote: Hi, this was supposed to be very straightforward but required a little more. A first draft of the patch exploited DECL_SOURCE_LOCATION but that failed when I tested the case of a function already defined in class: at that point the location of the decl

[C++ Patch] Fix a start_decl location

2019-01-06 Thread Paolo Carlini
Hi, this was supposed to be very straightforward but required a little more. A first draft of the patch exploited DECL_SOURCE_LOCATION but that failed when I tested the case of a function already defined in class: at that point the location of the decl is that of the in class definition itsel