https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49745
--- Comment #26 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:436891d97aef6d7a8e107d2d3e02e8ca4c52a51a commit r10-10571-g436891d97aef6d7a8e107d2d3e02e8ca4c52a51a Author: Jonathan Wakely <jwak...@redhat.com> Date: Mon Apr 12 11:12:47 2021 +0100 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)