Re: C++ PATCH for c++/89537 - missing location for error with non-static member fn

2019-03-01 Thread Jason Merrill
On 2/28/19 2:45 PM, Marek Polacek wrote: On Thu, Feb 28, 2019 at 02:33:37PM -0500, Jason Merrill wrote: On 2/28/19 2:00 PM, Marek Polacek wrote: Here we issued the "invalid use of non-static member function" error with UNKNOWN_LOCATION, which merely shows "cc1plus" and no file/line. We can gre

Re: C++ PATCH for c++/89537 - missing location for error with non-static member fn

2019-02-28 Thread Marek Polacek
On Thu, Feb 28, 2019 at 02:33:37PM -0500, Jason Merrill wrote: > On 2/28/19 2:00 PM, Marek Polacek wrote: > > Here we issued the "invalid use of non-static member function" error with > > UNKNOWN_LOCATION, which merely shows "cc1plus" and no file/line. We can > > greatly improve this situation wit

Re: C++ PATCH for c++/89537 - missing location for error with non-static member fn

2019-02-28 Thread Jason Merrill
On 2/28/19 2:00 PM, Marek Polacek wrote: Here we issued the "invalid use of non-static member function" error with UNKNOWN_LOCATION, which merely shows "cc1plus" and no file/line. We can greatly improve this situation with the below. The patch is IMHO trivial (though it's user-provided) to go i

C++ PATCH for c++/89537 - missing location for error with non-static member fn

2019-02-28 Thread Marek Polacek
Here we issued the "invalid use of non-static member function" error with UNKNOWN_LOCATION, which merely shows "cc1plus" and no file/line. We can greatly improve this situation with the below. The patch is IMHO trivial (though it's user-provided) to go in even at this point. Bootstrapped/regtest