https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65992
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Started with r202605. Before: /opt/notnfs/polacek/x.ii: In lambda function: /opt/notnfs/polacek/x.ii:37:30: error: ‘const’ qualifiers cannot be applied to ‘const gen::C<Members>&’ [=] { [&] { auto dummy = {(bs, 0)...}; }; }; ^ /opt/notnfs/polacek/x.ii:37:36: error: expansion pattern ‘(bs, 0)’ contains no argument packs [=] { [&] { auto dummy = {(bs, 0)...}; }; }; ^ /opt/notnfs/polacek/x.ii: In instantiation of ‘struct gen::build(Gen<T>, const gen::C<Members>& ...) [with T = Foobar<int>; Members = {void (Foobar<int>::*)(), void (Foobar<int>::*)(), int Foobar<int>::*}]::<lambda()>’: /opt/notnfs/polacek/x.ii:37:3: required from ‘void gen::build(Gen<T>, const gen::C<Members>& ...) [with T = Foobar<int>; Members = {void (Foobar<int>::*)(), void (Foobar<int>::*)(), int Foobar<int>::*}]’ /opt/notnfs/polacek/x.ii:48:37: required from here /opt/notnfs/polacek/x.ii:37:30: sorry, unimplemented: use of ‘type_pack_expansion’ in template [=] { [&] { auto dummy = {(bs, 0)...}; }; }; ^ /opt/notnfs/polacek/x.ii:37:30: error: using invalid field ‘gen::build(Gen<T>, const gen::C<Members>& ...)::<lambda()>::<bs capture>’