// { dg-do compile { target c++20 } } #include template struct Alloc { using value_type = T; Alloc(int) { } // not default constructible template Alloc(const Alloc&) { } T* allocate(std::size_t n) { return std::allocator().allocate(n); } void deallocate(T* p, std::size_t n) { std::allocator().deallocate(p, n); } }; template struct wrap { T t; }; template void do_adl(T&) { } void test_pr113841() { using Tr = std::char_traits; using test_type = std::basic_string>; std::pair>* h = nullptr; do_adl(h); }