[Bug c++/100731] [11/12 Regression] GCC 11 fails to build using GCC 4.8 because of missing includes

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 25 14:45:20 GMT 2021


--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:


commit r12-1041-g7a5e9a58fbe27d8b8f04cd18bc6e1dd736e3cd12
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue May 25 16:44:35 2021 +0200

    c++tools: Include <cstdlib> for exit [PR100731]

    This TU uses exit, but doesn't include <stdlib.h> or <cstdlib> and relies
    on some other header to include it indirectly, which apparently doesn't
    happen on reporter's host.

    The other <c*> headers aren't guarded either and we rely on a compiler
    capable of C++11, so maybe we can rely on <cstdlib> being around

    2021-05-25  Jakub Jelinek  <jakub@redhat.com>

            PR bootstrap/100731
            * server.cc: Include <cstdlib>.

More information about the Gcc-bugs mailing list