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.