// { dg-do compile { target c++11 } } // { dg-require-effective-target hosted } #include struct move_only { move_only(move_only&&); }; using P = std::pair; void test_pr108952(std::pair rvals) { // LWG 3527. uses_allocator_construction_args handles rvalue pairs of // rvalue references incorrectly. // PR libstdc++/108952 Regression in uses_allocator_construction_args // for pair of rvalue references std::scoped_allocator_adaptor> a; auto p = a.allocate(1); a.construct(p, std::move(rvals)); a.deallocate(p, 1); }