https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111923
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- One more note, default argument clause does not apply here as the it is not an argument of a method of that class but rather a different context (the lamdba definition context).