On Fri Dec 12, 2025 at 8:48 PM WET, Patrick Palka wrote:
>> diff --git a/gcc/testsuite/g++.dg/cpp1z/lambda-default-template-117518.C
>> b/gcc/testsuite/g++.dg/cpp1z/lambda-default-template-117518.C
>> new file mode 100644
>> index 00000000000..55318943acf
>> --- /dev/null
>> +++ b/gcc/testsuite/g++.dg/cpp1z/lambda-default-template-117518.C
>> @@ -0,0 +1,3 @@
>> +// { dg-do compile { target c++20 } }
>> +// PR c++/117518
>> +template <auto = []<int> (auto) {}> int x;
>
> Could you move this test into the c++2a dir?
> Other such tests there are named lambda-targNNN.C
>
> Could you also instantiate x using the default targ?
>
Yes. I'll submit a v2.
Thanks for taking a look at these :)