brintos

brintos / llvm-project-archived public Read only

0
0
Text · 400 B · 2c5b8b9 Raw
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