https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64161
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- It looks like it includes stdlib.h but not the C++ wrapper, cstdlib I'm going to commit a patch to include cstdlib as that's correct anyway, I hope that will fix it.