From 8e7cf04d54f5ffb540fdd5406010bb162b9f472b Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 27 May 2025 21:50:24 +0100 Subject: [PATCH] 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. --- libstdc++-v3/testsuite/17_intro/names.cc | 2 ++ libstdc++-v3/testsuite/experimental/names.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.3