https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121858
--- Comment #6 from Tomasz KamiĆski <tkaminsk at gcc dot gnu.org> --- But then very similar case will still depend on lifetime of sr. void foo(S&); std::function_ref(std::non_type<&foo>, sr);
tkaminsk at gcc dot gnu.org via Gcc-bugs Fri, 24 Oct 2025 05:35:50 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121858
--- Comment #6 from Tomasz KamiĆski <tkaminsk at gcc dot gnu.org> --- But then very similar case will still depend on lifetime of sr. void foo(S&); std::function_ref(std::non_type<&foo>, sr);