https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121010
Bug ID: 121010 Summary: Error on lambda in fold expression in lambda capturing pack Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eczbek.void at gmail dot com Target Milestone: --- https://godbolt.org/z/TW4T33shG ``` void f(auto... x) { [x...] { (..., [x] {}); }; } int main() {} ``` ``` <source>: In lambda function: <source>:3:25: error: parameter packs not expanded with '...': [-Wtemplate-body] 3 | (..., [x] {}); | ^ <source>:3:25: note: 'x' Compiler returned: 1 ``` Works in 10.5