Re: [PATCH] c++: Fix mismatch in template argument deduction [PR90505]

2020-03-03 Thread Jason Merrill
On 3/3/20 7:50 PM, Marek Polacek wrote: My GCC 9 patch for C++20 P0846R0 (ADL and function templates) tweaked cp_parser_template_name to only return an identifier if name lookup didn't find anything. In the deduce4.C case it means that we now return an OVERLOAD. That means that cp_parser_templa

[PATCH] c++: Fix mismatch in template argument deduction [PR90505]

2020-03-03 Thread Marek Polacek
My GCC 9 patch for C++20 P0846R0 (ADL and function templates) tweaked cp_parser_template_name to only return an identifier if name lookup didn't find anything. In the deduce4.C case it means that we now return an OVERLOAD. That means that cp_parser_template_id will call lookup_template_function w