https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113258
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Resolution|INVALID |--- Status|RESOLVED |ASSIGNED --- Comment #23 from Jonathan Wakely <redi at gcc dot gnu.org> --- And what matters is not that it's pre-C++17 code that replaces malloc/free, but pre-C11. The C++ standard version being used by the malloc-replacing library is irrelevant, what matters is how dated the malloc replacement is. A C11-aware malloc replacement should also replace aligned_alloc. Anyway, patch posted: https://gcc.gnu.org/pipermail/gcc-patches/2024-January/642354.html