Re: [PATCH] c++: wrong error with variadic concept [PR105268]

2022-04-14 Thread Jason Merrill via Gcc-patches
On 4/14/22 16:24, Marek Polacek wrote: Here we issue a wrong error for the template>> void g(); line in the testcase. I surmise that's because we mistakenly parse C_many as a placeholder-type-specifier, and things go wrong from there. We are in a default argument so we should reject parsin

[PATCH] c++: wrong error with variadic concept [PR105268]

2022-04-14 Thread Marek Polacek via Gcc-patches
Here we issue a wrong error for the template>> void g(); line in the testcase. I surmise that's because we mistakenly parse C_many as a placeholder-type-specifier, and things go wrong from there. We are in a default argument so we should reject parsing C_many as a placeholder-type-specifier,