public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-9611] libstdc++: Fix test failure on AIX
@ 2021-03-29 20:04 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-03-29 20:04 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:ad70672e19712c480c138f8c3823f7566fe4e5f8

commit r10-9611-gad70672e19712c480c138f8c3823f7566fe4e5f8
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Nov 25 16:58:05 2020 +0000

    libstdc++: Fix test failure on AIX
    
    This fixes a failure on AIX 7.2:
    
    FAIL: 17_intro/names.cc (test for excess errors)
    Excess errors:
    /home/jwakely/src/gcc/libstdc++-v3/testsuite/17_intro/names.cc:99: error: expected identifier before '(' token
    /usr/include/sys/var.h:187: error: expected unqualified-id before '{' token
    /usr/include/sys/var.h:187: error: expected ')' before '{' token
    /usr/include/sys/var.h:337: error: expected unqualified-id before ';' token
    /usr/include/sys/var.h:337: error: expected ')' before ';' token
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/17_intro/names.cc: Do not test 'v' on AIX.
    
    (cherry picked from commit 1a8d1f54de371de88b2604d8c0e4e01306be8870)

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 5a61c97e989..2c8bfff26e1 100644
--- a/libstdc++-v3/testsuite/17_intro/names.cc
+++ b/libstdc++-v3/testsuite/17_intro/names.cc
@@ -193,6 +193,8 @@
 #undef r
 #undef x
 #undef y
+// <sys/var.h> defines vario::v
+#undef v
 #endif
 
 #ifdef __hpux__


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-29 20:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29 20:04 [gcc r10-9611] libstdc++: Fix test failure on AIX Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).