gcc 9.1/9.2 has a bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90538) which leads to an incorrect error when expanding parameter packs multiple times in a lambda. Code introduced in D79296 hits this issue. Inlining this lambda to work around this issue.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
It now works with gcc9.2. I did not try with other compilers.
Is is too much to ask to write the reason it is implemented the way it is?
Maybe say that this was a lambda function that needed to be expanded.
But otherwise it looks fine to me