https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100007
Bug ID: 100007
Summary: Parameter packs not expanded with bit field
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/ccb69heP9
template <int... Ns>
auto f() {
([] { struct U { int x : Ns; }; }, ...);
([] { union U { int x : Ns; }; }, ...);
}
gcc rejects it.
