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

Reply via email to