Re: C++ PATCH for c++/88548, this accepted in static member functions

2019-01-07 Thread Jason Merrill
On 12/22/18 4:38 PM, Marek Polacek wrote: I noticed that we weren't diagnosing using 'this' in noexcept-specifiers of static member functions, and Jakub pointed out that this is also true for trailing-return-type. cp_parser has local_variables_forbidden_p to detect using local vars and 'this' in

Re: C++ PATCH for c++/88548, this accepted in static member functions

2019-01-04 Thread Marek Polacek
Ping. On Sat, Dec 22, 2018 at 04:38:30PM -0500, Marek Polacek wrote: > I noticed that we weren't diagnosing using 'this' in noexcept-specifiers > of static member functions, and Jakub pointed out that this is also true > for trailing-return-type. cp_parser has local_variables_forbidden_p to > det