Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-generic-this2.C

raw
1 // PR c++/85764
2 // { dg-do compile { target c++14 } }
3
4 template<typename Key>
5 class trie {
6 static void for_each(int & f, trie const & n, Key & prefix) {
7 [&](trie const & c) {
8 for_each(f, c, prefix);
9 };
10 }
11 void for_each(int & f) const {
12 }
13 };