]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix experimental/names.cc failure on AIX
authorJonathan Wakely <jwakely@redhat.com>
Fri, 2 Feb 2024 10:46:52 +0000 (10:46 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 2 Feb 2024 13:54:02 +0000 (13:54 +0000)
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".

libstdc++-v3/testsuite/17_intro/names.cc

index 53c5aff219d317f505167d8238140e1664486e13..784da9a7352255f0079be8e576ce57760b028952 100644 (file)
 #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