[gcc r12-7469] libstdc++: Fix test failure on AIX
Jonathan Wakely
redi@gcc.gnu.org
Thu Mar 3 22:35:37 GMT 2022
https://gcc.gnu.org/g:64cdf49962996747b4c5687a705551d5fc61fac8
commit r12-7469-g64cdf49962996747b4c5687a705551d5fc61fac8
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Mar 3 22:20:32 2022 +0000
libstdc++: Fix test failure on AIX
This fixes a test failure due to a non-reserved name in an AIX system
header (included via <pthread.h>). That name clashes with one of the
names we check our own headers for, so skip checking that name on AIX.
libstdc++-v3/ChangeLog:
* testsuite/17_intro/names.cc (func): Undef on AIX.
Diff:
---
libstdc++-v3/testsuite/17_intro/names.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc
index 1f7f83da8fa..ede2fe8caa7 100644
--- a/libstdc++-v3/testsuite/17_intro/names.cc
+++ b/libstdc++-v3/testsuite/17_intro/names.cc
@@ -203,6 +203,8 @@
#undef y
// <sys/var.h> defines vario::v
#undef v
+// <sys/timer.h> defines trb::func and cputime_tmr::func
+#undef func
#endif
#ifdef __APPLE__
More information about the Gcc-cvs
mailing list