]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix 17_intro/names.cc failure on Solaris 11.3
authorJonathan Wakely <jwakely@redhat.com>
Thu, 22 May 2025 14:23:10 +0000 (15:23 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 23 May 2025 16:46:39 +0000 (17:46 +0100)
There are some names in Solaris libc headers which cause:

FAIL: 17_intro/names.cc  -std=gnu++98 (test for excess errors)
FAIL: 17_intro/names.cc  -std=gnu++11 (test for excess errors)

libstdc++-v3/ChangeLog:

* testsuite/17_intro/names.cc [__sun__] (a, i, n): Undefine.

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

index f67818db425fe278810b0e7c01b6a0fa03e4bab3..0e67c795564d192923f33ae6d0424b2008e4c29b 100644 (file)
 
 #ifdef __sun__
 // <fenv.h> defines these as members of fex_numeric_t
+#undef i
 #undef l
 #undef f
 #undef d
 #undef ptr
 // <sys/timespec_util.h> uses this as parameter
 #undef r
-// <stdlib.h> uses this as member of drand48_data
+// <stdlib.h> uses these as members of drand48_data
+#undef a
 #undef x
+// <string.h> defines this as a parameter of timingsafe_memcmp
+#undef n
 #endif
 
 #ifdef __VXWORKS__