Re: [PATCH] c++: Fix two issues with auto function parameter [PR99806]

2021-04-08 Thread Patrick Palka via Gcc-patches
On Thu, 8 Apr 2021, Marek Polacek via Gcc-patches wrote: > When we have a member function with auto parameter like this: > > struct S { > void f(auto); > }; > > cp_parser_member_declaration -> grokfield produces a FUNCTION_DECL > "void S::foo(auto:1)", and then finish_fully_implicit_temp

[PATCH] c++: Fix two issues with auto function parameter [PR99806]

2021-04-08 Thread Marek Polacek via Gcc-patches
When we have a member function with auto parameter like this: struct S { void f(auto); }; cp_parser_member_declaration -> grokfield produces a FUNCTION_DECL "void S::foo(auto:1)", and then finish_fully_implicit_template turns that FUNCTION_DECL into a TEMPLATE_DECL. The bug here is that