https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96942
--- Comment #2 from Dmitriy Ovdienko <dmitriy.ovdienko at gmail dot com> --- Created attachment 49185 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49185&action=edit Modified solution with custom allocator based on malloc