Re: C++ PATCH for c++/61490 - qualified-id in friend function definition

2019-06-21 Thread Jason Merrill
On 6/17/19 5:43 PM, Marek Polacek wrote: [class.friend]/6 says that when we define a function in a friend declaration, the function name must be unqualified. But we never made sure that's so. For good measure, I'm also improving the location of the related diagnostic. Bootstrapped/regtested on

C++ PATCH for c++/61490 - qualified-id in friend function definition

2019-06-17 Thread Marek Polacek
[class.friend]/6 says that when we define a function in a friend declaration, the function name must be unqualified. But we never made sure that's so. For good measure, I'm also improving the location of the related diagnostic. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2019-06-17 M