Re: C++ PATCH for c++/90572 - wrong disambiguation in friend declaration

2019-05-24 Thread Jason Merrill
On 5/24/19 3:16 PM, Marek Polacek wrote: Here we were parsing template struct C { friend C(T::fn)(); // this }; wrongly in C++2a since my P0634 patch. T::fn is actually a function declaration, but cp_parser_constructor_declarator_p was thinking it's a constructor. That function ac

C++ PATCH for c++/90572 - wrong disambiguation in friend declaration

2019-05-24 Thread Marek Polacek
Here we were parsing template struct C { friend C(T::fn)(); // this }; wrongly in C++2a since my P0634 patch. T::fn is actually a function declaration, but cp_parser_constructor_declarator_p was thinking it's a constructor. That function actually has code to prevent the compiler from