Re: [PATCH] c++: explicit() ignored on deduction guide [PR100065]

2021-06-08 Thread Jason Merrill via Gcc-patches
On 6/7/21 8:06 PM, Marek Polacek wrote: When we have explicit() with a value-dependent argument, we can't evaluate it at parsing time, so cp_parser_function_specifier_opt stashes the argument into the decl-specifiers and grokdeclarator then stores it into explicit_specifier_map, which is then use

[PATCH] c++: explicit() ignored on deduction guide [PR100065]

2021-06-07 Thread Marek Polacek via Gcc-patches
When we have explicit() with a value-dependent argument, we can't evaluate it at parsing time, so cp_parser_function_specifier_opt stashes the argument into the decl-specifiers and grokdeclarator then stores it into explicit_specifier_map, which is then used when substituting the function decl. gr