public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ville Voutilainen <ville.voutilainen@gmail.com>
To: Markus Trippelsdorf <markus@trippelsdorf.de>
Cc: Jonathan Wakely <jwakely@redhat.com>,
	"libstdc++" <libstdc++@gcc.gnu.org>,
		"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [v3 PATCH] Fix testsuite failures caused by the patch implementing LWG 2534.
Date: Thu, 01 Dec 2016 06:11:00 -0000	[thread overview]
Message-ID: <CAFk2RUY0ExYCVXQ3+WC1wDin3mC8CmK0JXnic1Wq0Ka1t4k3Gg@mail.gmail.com> (raw)
In-Reply-To: <20161201053808.GI25596@x4>

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

On 1 December 2016 at 07:38, Markus Trippelsdorf <markus@trippelsdorf.de> wrote:
> It breaks building Firefox:


Sigh, when writing a trait, write a proper trait. Does this patch fix
the problem?

2016-12-01  Ville Voutilainen  <ville.voutilainen@gmail.com>

    The convertible_to traits need to use a variadic catch-all for the
    false-cases.
    * include/std/istream (__is_convertible_to_basic_istream):
    Change the parameter of the false-case of __check to a variadic.
    * include/std/ostream (__is_convertible_to_basic_ostream):
    Likewise.

[-- Attachment #2: lwg2534_fix_trait.diff --]
[-- Type: text/plain, Size: 1077 bytes --]

diff --git a/libstdc++-v3/include/std/istream b/libstdc++-v3/include/std/istream
index 319e226..1d77d30 100644
--- a/libstdc++-v3/include/std/istream
+++ b/libstdc++-v3/include/std/istream
@@ -915,7 +915,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       template<typename _Ch, typename _Up>
       static basic_istream<_Ch, _Up>& __check(basic_istream<_Ch, _Up>*);
 
-      static void __check(void*);
+      static void __check(...);
     public:
       using istream_type =
 	decltype(__check(declval<typename remove_reference<_Tp>::type*>()));
diff --git a/libstdc++-v3/include/std/ostream b/libstdc++-v3/include/std/ostream
index 70fd10b..9dea778 100644
--- a/libstdc++-v3/include/std/ostream
+++ b/libstdc++-v3/include/std/ostream
@@ -619,7 +619,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     template<typename _Ch, typename _Up>
     static basic_ostream<_Ch, _Up>& __check(basic_ostream<_Ch, _Up>*);
 
-    static void __check(void*);
+    static void __check(...);
   public:
     using ostream_type =
       decltype(__check(declval<typename remove_reference<_Tp>::type*>()));

  reply	other threads:[~2016-12-01  6:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-30 15:58 Ville Voutilainen
2016-11-30 16:25 ` Jonathan Wakely
2016-12-01  5:38   ` Markus Trippelsdorf
2016-12-01  6:11     ` Ville Voutilainen [this message]
2016-12-01  6:45       ` Markus Trippelsdorf
2016-12-01  7:14         ` Ville Voutilainen
2016-12-01  7:17           ` Ville Voutilainen

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=CAFk2RUY0ExYCVXQ3+WC1wDin3mC8CmK0JXnic1Wq0Ka1t4k3Gg@mail.gmail.com \
    --to=ville.voutilainen@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jwakely@redhat.com \
    --cc=libstdc++@gcc.gnu.org \
    --cc=markus@trippelsdorf.de \
    /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).