https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49745

--- Comment #24 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jonathan Wakely
<r...@gcc.gnu.org>:

https://gcc.gnu.org/g:176e55cc28a61b7b246bd9e16ffeaa31367a8985

commit r11-9277-g176e55cc28a61b7b246bd9e16ffeaa31367a8985
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Nov 10 11:43:46 2021 +0000

    libstdc++: Fix test for libstdc++ not including <unistd.h> [PR100117]

    The <cxxx> headers for the C library are not under our control, so we
    can't prevent them from including <unistd.h>. Change the PR 49745 test
    to only include the C++ library headers, not the <cxxx> ones.

    To ensure <bits/stdc++.h> isn't included automatically we need to use
    no_pch to disable PCH.

    libstdc++-v3/ChangeLog:

            PR libstdc++/100117
            * testsuite/17_intro/headers/c++1998/49745.cc: Explicitly list
            all C++ headers instead of including <bits/stdc++.h>

    (cherry picked from commit 77963796aef8aa07993c0bc757c15848fab7432a)

Reply via email to