geLog:
* g++.dg/ext/attr-section-lambda.C: New test.
Signed-off-by: Campbell Suter
---
gcc/cp/lambda.cc | 7
.../g++.dg/ext/attr-section-lambda.C | 42 +++
2 files changed, 49 insertions(+)
create mode 100644 gcc/testsuite/g++.d
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)))
>> +{
>> +
geLog:
* g++.dg/ext/attr-section-lambda.C: New test.
Signed-off-by: Campbell Suter
---
gcc/cp/lambda.cc | 8
.../g++.dg/ext/attr-section-lambda.C | 42 +++
2 files changed, 50 insertions(+)
create mode 100644 gcc/testsuite/g++.d