[Bug libstdc++/77691] [7/8 regression] experimental/memory_resource/resource_adaptor.cc FAILs
ro at CeBiTec dot Uni-Bielefeld.DE
gcc-bugzilla@gcc.gnu.org
Thu Mar 22 13:39:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77691
--- Comment #17 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> ---
> We *could* make the libstdc++ operator new call malloc repeatedly until it gets
> something aligned to max_align_t, so that operator new and the C++ allocators
> meet the alignment requirements.
>
> But that seems quite horrible.
Indeed, and I'd rather not avoid that penalty for a corner case. To
achieve this, one could instead use aligned_alloc instead, which is only
in Solaris 11.4, however.
Rainer
More information about the Gcc-bugs
mailing list