[Bug libstdc++/70940] New: pmr::resource_adaptor requires optional allocator requirements and incorrectly aligns returned pointers.
eric at efcs dot ca
gcc-bugzilla@gcc.gnu.org
Wed May 4 07:27:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70940
Bug ID: 70940
Summary: pmr::resource_adaptor requires optional allocator
requirements and incorrectly aligns returned pointers.
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: eric at efcs dot ca
Target Milestone: ---
resource_adapter incorrectly requires that the Allocator provide:
* A pointer typedef.
* A default constructor.
Furthermore it seems that do_allocate returns ill-aligned pointers. It seems
that do_allocate(s, a) returns the pointers from
'Allocator<char>.allocate(...)' directly even though they have no alignment
guarantees.
More information about the Gcc-bugs
mailing list