https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94575
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> --- I'm getting 94575.C: In function ‘int main()’: 94575.C:15:6: error: cannot bind non-const lvalue reference of type ‘main()::<lambda(auto:1)>&’ to an rvalue of type ‘main()::<lambda(auto:1)>’ 15 | }); | ^ 94575.C:3:20: note: initializing argument 1 of ‘void Use(T&) [with T = main()::<lambda(auto:1)>]’ 3 | static void Use(T& plot) | ~~~^~~~ instead. So, not confirmed yet.