libstdc++: make polymorphic_allocator throw consistent type (LWG 3237)
authorJonathan Wakely <jwakely@redhat.com>
Wed, 19 Feb 2020 15:21:31 +0000 (15:21 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 19 Feb 2020 15:34:08 +0000 (15:34 +0000)
commite89100ef2efcf2bb1f1af1bdd81a1035d78f3fa4
tree7544732e916acd00d0d2524e6e3da4e0cb971564
parentbb54e0b8794dfeea1f59ed9ca6433df1eccb85e9
libstdc++: make polymorphic_allocator throw consistent type (LWG 3237)

* include/std/memory_resource (polymorphic_allocator::allocate)
(polymorphic_allocator::allocate_object): Change type of exception to
bad_array_new_length (LWG 3237).
* testsuite/20_util/polymorphic_allocator/lwg3237.cc: New test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/memory_resource
libstdc++-v3/testsuite/20_util/polymorphic_allocator/lwg3237.cc [new file with mode: 0644]