aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-02-02 10:46:52 +0000
committerJonathan Wakely <jwakely@redhat.com>2024-02-02 13:54:02 +0000
commitf929293589009f82d19d6df447af6f7e7b984107 (patch)
tree35411c646215aa331566e124b4b9fcd29470266f
parent9f5caef53e7808fef21111baf8e6ffac230b9863 (diff)
downloadgcc-f929293589009f82d19d6df447af6f7e7b984107.zip
gcc-f929293589009f82d19d6df447af6f7e7b984107.tar.gz
gcc-f929293589009f82d19d6df447af6f7e7b984107.tar.bz2
libstdc++: Fix experimental/names.cc failure on AIX
This fails due to "u" being used in a system header. FAIL: experimental/names.cc -std=gnu++17 (test for excess errors) Excess errors: /usr/include/sys/poll.h:77: error: expected unqualified-id before ';' token /usr/include/sys/poll.h:77: error: expected ')' before ';' token FAIL: experimental/names.cc -std=gnu++17 (test for excess errors) Excess errors: /usr/include/sys/poll.h:102: error: expected unqualified-id before ';' token /usr/include/sys/poll.h:102: error: expected ')' before ';' token libstdc++-v3/ChangeLog: * testsuite/17_intro/names.cc [_AIX]: Undefine "u".
-rw-r--r--libstdc++-v3/testsuite/17_intro/names.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc
index 53c5aff..784da9a 100644
--- a/libstdc++-v3/testsuite/17_intro/names.cc
+++ b/libstdc++-v3/testsuite/17_intro/names.cc
@@ -240,6 +240,8 @@
#undef r
#undef x
#undef y
+// <sys/poll.h> defines pollfd_ext::u on AIX 7.3
+#undef u
// <sys/var.h> defines vario::v
#undef v
// <sys/timer.h> defines trb::func and cputime_tmr::func