// PR c++/87410 // { dg-do compile { target c++14 } } template using b = const char[a]; template constexpr auto g(b &, b &, f) {} template auto h(b &) { auto i = j(static_cast(nullptr)); return **i; } class k { using l = k; const int &m() const; friend constexpr auto j(l **n) -> decltype(n) { g("", "", static_cast(&k::m)); return n; } }; k o = h("");