On 14/12/2024 04:34, Marek Polacek wrote:
>> @@ -1376,6 +1377,13 @@ maybe_add_lambda_conv_op (tree type)
>>if (generic_lambda_p)
>> fn = add_inherited_template_parms (fn, DECL_TI_TEMPLATE (callop));
>>
>> + if (lookup_attribute ("section", DECL_ATTRIBUTES (callop)))
>> +{
>> +
On Fri, Dec 13, 2024 at 04:52:58PM +1300, Campbell Suter wrote:
> Each lambda that can be converted to a plain function pointer has a
> thunk generated for it, which invokes the body of the lambda function.
>
> When a section attribute is added to a lambda function, it only applies
> to the body o
Each lambda that can be converted to a plain function pointer has a
thunk generated for it, which invokes the body of the lambda function.
When a section attribute is added to a lambda function, it only applies
to the body of the lambda function, and not the thunk. When a lambda is
only ever used