https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69767
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> --- GCC 5 behaves the same here. If I use #include <cstdlib> the the program won't compile even in C++03. Not 100 % sure this is a bug though...