https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100022
Bug ID: 100022 Summary: Parameter packs not expanded with alignas specifier 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: --- https://godbolt.org/z/49KvrsM9W template <int... Ns> void g() { ([] { struct alignas(Ns) S {}; }, ...); } gcc rejects it.