https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125797
--- Comment #1 from friedkeenan at protonmail dot com --- Adding a trailing void return type to the lambda also allows the program to successfully compile, even when the lambda is templated. (Thanks to Lénárd Szolnoki for pointing this out.)
