https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77691
--- Comment #44 from Jonathan Wakely <redi at gcc dot gnu.org> --- It looks like mingw* has the same problem: https://sourceforge.net/p/mingw-w64/bugs/778/ mlloc returns memory aligned to 8 bytes, GCC's stddef.h says 16 is a fundamental alignment. Even worse, mingw's own stddef.h says 8, and which definition of max_align_t you get depends on include order.