public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely@redhat.com>
To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: [committed] libstdc++: Fix test failure on AIX
Date: Wed, 25 Nov 2020 17:41:27 +0000	[thread overview]
Message-ID: <20201125174127.GA2017149@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 637 bytes --]

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.

Tested powerpc64le-linux and powerpc-aix. Committed to trunk.


[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1155 bytes --]

commit 1a8d1f54de371de88b2604d8c0e4e01306be8870
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Nov 25 16:58:05 2020

    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.

diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc
index 5a61c97e9899..2c8bfff26e1c 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__

             reply	other threads:[~2020-11-25 17:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25 17:41 Jonathan Wakely [this message]
2022-03-03 22:38 Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201125174127.GA2017149@redhat.com \
    --to=jwakely@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=libstdc++@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).