public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r11-10119] libstdc++: Fix 28_regex/basic_regex/84110.cc on Solaris
Date: Thu,  7 Jul 2022 23:32:19 +0000 (GMT)	[thread overview]
Message-ID: <20220707233219.24AC6384D183@sourceware.org> (raw)

https://gcc.gnu.org/g:490685354ebf57c509383145d87c4fe3432f6055

commit r11-10119-g490685354ebf57c509383145d87c4fe3432f6055
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date:   Tue Oct 26 14:07:57 2021 +0200

    libstdc++: Fix 28_regex/basic_regex/84110.cc on Solaris
    
    28_regex/basic_regex/84110.cc currently FAILs on Solaris:
    
    FAIL: 28_regex/basic_regex/84110.cc (test for excess errors)
    UNRESOLVED: 28_regex/basic_regex/84110.cc compilation failed to produce executable
    
    Excess errors:
    /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/28_regex/basic_regex/84110.cc:14: error: reference to 'extended' is ambiguous
    
    The issue is seen in the full output:
    
    /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/28_regex/basic_regex/84110.cc: In function ‘void test01()’:
    /vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/28_regex/basic_regex/84110.cc:14: error: reference to ‘extended’ is ambiguous
    In file included from /var/gcc/regression/master/11.4-gcc-gas/build/gcc/include-fixed/math.h:391,
                     from /var/gcc/regression/master/11.4-gcc-gas/build/i386-pc-solaris2.11/libstdc++-v3/include/cmath:45,
                     from /vol/gcc/src/hg/master/local/libstdc++-v3/include/precompiled/stdc++.h:41:
    /usr/include/floatingpoint.h:73: note: candidates are: ‘typedef unsigned int extended [3]’
    
    Fixed by disambiguating extended.  Tested on i386-pc-solaris2.11,
    sparc-sun-solaris2.11, and x86_64-pc-linux-gnu.
    
    2021-10-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
    
            libstdc++-v3:
            * testsuite/28_regex/basic_regex/84110.cc (test01)
            [__cpp_exceptions]: Disambiguate extended.
    
    (cherry picked from commit 931f1e377ad27af2801c1e68946010e980810539)

Diff:
---
 libstdc++-v3/testsuite/28_regex/basic_regex/84110.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libstdc++-v3/testsuite/28_regex/basic_regex/84110.cc b/libstdc++-v3/testsuite/28_regex/basic_regex/84110.cc
index b9971dcaac5..16f928b40ef 100644
--- a/libstdc++-v3/testsuite/28_regex/basic_regex/84110.cc
+++ b/libstdc++-v3/testsuite/28_regex/basic_regex/84110.cc
@@ -11,6 +11,9 @@ void test01()
 
 #if __cpp_exceptions
   using namespace std::regex_constants;
+  // See https://gcc.gnu.org/pipermail/gcc-patches/2021-October/582486.html
+  using std::regex_constants::extended;
+
   for (auto syn : {basic, extended, awk, grep, egrep})
   {
     try


                 reply	other threads:[~2022-07-07 23:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220707233219.24AC6384D183@sourceware.org \
    --to=redi@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@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).