https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100117
Bug ID: 100117 Summary: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- I have seen (with r11-7986 , so sorry if it has been fixed already) FAIL: 17_intro/headers/c++1998/49745.cc (test for excess errors) which appears only when built against latest glibc 2.34 snapshot and works fine against glibc 2.33. libstdc++.log contains: /builddir/build/BUILD/gcc-11.0.1-20210405/libstdc++-v3/testsuite/17_intro/headers/c++1998/49745.cc:22: error: 'int truncate' redeclared as different kind of entity In file included from /usr/include/bits/sigstksz.h:24, from /usr/include/signal.h:315, from /builddir/build/BUILD/gcc-11.0.1-20210405/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/csignal:42, from /builddir/build/BUILD/gcc-11.0.1-20210405/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/stdc++.h:43, from <command-line>: /usr/include/unistd.h:1005: note: previous declaration 'int truncate(const char*, __off_t)' Maybe it would be nice if bits/sigstksz.h didn't include whole unistd.h but just bits/confname.h and used some __ prefixed alias with redirection for the sysconf call?