https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108525
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:9d4c00cdaccc3decd07740e817387ce844ef3ac9 commit r13-5372-g9d4c00cdaccc3decd07740e817387ce844ef3ac9 Author: Jakub Jelinek <ja...@redhat.com> Date: Wed Jan 25 15:13:30 2023 +0100 c++: Fix up mangling of static lambdas [PR108525] Before the P1169R4 changes, operator () of a lambda was always a method, so it was fine to pass method_p = 1 unconditionally, but it isn't always the case, so this patch adds a check for whether it is a method or nor. 2023-01-25 Jakub Jelinek <ja...@redhat.com> PR c++/108525 * mangle.cc (write_closure_type_name): Don't assume all lambda operator() fns are methods. * g++.dg/cpp23/static-operator-call5.C: New test.