Re: [PATCH] c++: Allow template lambdas without lambda-declarator [PR97839]

2020-11-20 Thread Jason Merrill via Gcc-patches
On 11/18/20 1:16 PM, Marek Polacek wrote: On Tue, Nov 17, 2020 at 01:05:20PM -0500, Marek Polacek via Gcc-patches wrote: Our implementation of template lambdas incorrectly requires the optional lambda-declarator. This was probably required by an early draft of generic lambdas, but now the produ

Re: [PATCH] c++: Allow template lambdas without lambda-declarator [PR97839]

2020-11-20 Thread Jason Merrill via Gcc-patches
On 11/17/20 1:05 PM, Marek Polacek wrote: Our implementation of template lambdas incorrectly requires the optional lambda-declarator. This was probably required by an early draft of generic lambdas, but now the production is [expr.prim.lambda.general]: lambda-expression: lambda-introduce

Re: [PATCH] c++: Allow template lambdas without lambda-declarator [PR97839]

2020-11-18 Thread Marek Polacek via Gcc-patches
On Tue, Nov 17, 2020 at 01:05:20PM -0500, Marek Polacek via Gcc-patches wrote: > Our implementation of template lambdas incorrectly requires the optional > lambda-declarator. This was probably required by an early draft of > generic lambdas, but now the production is [expr.prim.lambda.general]: >

[PATCH] c++: Allow template lambdas without lambda-declarator [PR97839]

2020-11-17 Thread Marek Polacek via Gcc-patches
Our implementation of template lambdas incorrectly requires the optional lambda-declarator. This was probably required by an early draft of generic lambdas, but now the production is [expr.prim.lambda.general]: lambda-expression: lambda-introducer lambda-declarator [opt] compound-statement