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