12 lines · cpp
1// RUN: %clang_cc1 -std=c++23 -verify -fsyntax-only %s2 3namespace GH96205 {4 5void f() {6 auto l = [](this auto& self, int) -> void { self("j"); }; // expected-error {{no matching function for call to object of type}} \7 // expected-note {{no known conversion from 'const char[2]' to 'int'}}8 l(3); // expected-note {{requested here}}9}10 11}12