https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70940
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Sat Aug 6 12:20:31 2016 New Revision: 239199 URL: https://gcc.gnu.org/viewcvs?rev=239199&root=gcc&view=rev Log: libstdc++/70940 Start fixing polymorphic memory resources Backport from mainline 2016-05-04 Jonathan Wakely <jwak...@redhat.com> PR libstdc++/70940 * include/experimental/memory_resource (__resource_adaptor_imp::do_allocate): Do not default-construct rebound allocator. (__resource_adaptor_imp::do_deallocate): Likewise. Use allocator_traits to get pointer type. (__null_memory_resource::do_allocate): Remove unused parameters. (__null_memory_resource::do_deallocate): Likewise. (__null_memory_resource::do_is_equal): Likewise. Add return statement. * testsuite/experimental/type_erased_allocator/1.cc: Combine with ... * testsuite/experimental/type_erased_allocator/1_neg.cc: This, and move to ... * testsuite/experimental/memory_resource/1.cc: Here. * testsuite/experimental/memory_resource/null_memory_resource.cc: New. * testsuite/experimental/memory_resource/resource_adaptor.cc: New. Added: branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/memory_resource/ branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/memory_resource/1.cc - copied, changed from r239198, branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/type_erased_allocator/1.cc branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc - copied, changed from r239198, branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/type_erased_allocator/1_neg.cc branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/memory_resource/resource_adaptor.cc Removed: branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/type_erased_allocator/1.cc branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/type_erased_allocator/1_neg.cc Modified: branches/gcc-6-branch/libstdc++-v3/ChangeLog branches/gcc-6-branch/libstdc++-v3/include/experimental/memory_resource