Debian Codegraph @

clang/test/SemaCXX/lambda-call.cpp

raw
1 // RUN: %clang_cc1 -std=c++23 -verify -fsyntax-only %s
2
3 namespace GH96205 {
4
5 void 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 }