Files
gcc-reflection/gcc/testsuite/g++.dg/cpp1y/lambda-generic-this2.C
Jason Merrill 4cda703ebc PR c++/85764 - bogus 'this' not captured error.
* lambda.c (resolvable_dummy_lambda): Use nonlambda_method_basetype.
	(nonlambda_method_basetype): Handle NSDMI.

From-SVN: r261101
2018-06-01 23:14:44 -04:00

14 lines
282 B
C

// PR c++/85764
// { dg-do compile { target c++14 } }
template<typename Key>
class trie {
static void for_each(int & f, trie const & n, Key & prefix) {
[&](trie const & c) {
for_each(f, c, prefix);
};
}
void for_each(int & f) const {
}
};