https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83662
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> --- This bug report is only about declaring it in namespace std if it's already available in the global namespace in stdlib.h If your OS doesn't provide it in stdlib.h then that's not a gcc bug, and libstdc++ can't add 'using ::aligned_alloc;' to cstdlib.