https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99597
Bug ID: 99597 Summary: Parameter packs not expanded in lambda template list Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- The following code intends to work, even if it fails in three major compilers: template <typename... Ts> void f(Ts...) { ([]<Ts>(){}, ...); } int main() { f(0, 0.5); } (goldbot: https://godbolt.org/z/xnM9dY)