On Mon Dec 22, 2025 at 9:12 AM WET, Jason Merrill wrote:
>> Also, for some reason we only get diagnostics correctly after c++20. I'd
>> expect that it should work for c++98 onward, but no error is reported so
>> i kept the test in c++20.
>
> This seems to be because of the flag_concepts check earlier in the function.

Should something else be changed so the error works in earlier versions
or is it ok with the current change?

>> gcc/testsuite/ChangeLog:
>> 
>>      * g++.dg/template/partial-spec-redecl.C: New test.
>
> This doesn't match...

Sorry about that! I kept the commit msg from before i moved the test and
forgot to update the ChangeLog. I'll update it in a v2 if the patch
doesn't need other changes as well.

Reply via email to