From: Jonathan Wakely Date: Tue, 27 May 2025 20:50:24 +0000 (+0100) Subject: libstdc++: Fix another 17_intro/names.cc failure on AIX X-Git-Tag: basepoints/gcc-17~7848 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e7cf04d54f5ffb540fdd5406010bb162b9f472b;p=thirdparty%2Fgcc.git libstdc++: Fix another 17_intro/names.cc failure on AIX FAIL: 17_intro/names.cc -std=gnu++98 (test for excess errors) Also fix typo in experimental/names.cc where I did #undef for the wrong name in r16-901-gd1ced2a5ea6b09. libstdc++-v3/ChangeLog: * testsuite/17_intro/names.cc [_AIX] (a): Undefine. * testsuite/experimental/names.cc [_AIX] (ptr): Undefine. --- diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc index a61e49dc819..f32205d9c7f 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -248,6 +248,8 @@ #undef r #undef x #undef y +// defines drand48_data::a +#undef a // defines _LC_weight_t::n #undef n // defines pollfd_ext::u on AIX 7.3 diff --git a/libstdc++-v3/testsuite/experimental/names.cc b/libstdc++-v3/testsuite/experimental/names.cc index 4bedd530ecc..94ae76fc610 100644 --- a/libstdc++-v3/testsuite/experimental/names.cc +++ b/libstdc++-v3/testsuite/experimental/names.cc @@ -25,7 +25,7 @@ #ifdef _AIX // declares endnetgrent_r with ptr parameter. -# undef n +# undef ptr #endif // Filesystem