// PR c++/108550 // { dg-do compile { target c++14 } } template struct integral_constant { static constexpr T value = T1; }; template struct S { template static constexpr void foo(V) { } constexpr bool bar () const { foo(10); return false; } }; template constexpr auto is_pointer_v = S{}.bar(); template integral_constant> Wrap1(); int main() { static_assert(!decltype(Wrap1())::value, ""); }