public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/56505] New: [4.7 Regression] cannot construct std::thread with pointer to member and non-pointer
@ 2013-03-02  1:48 redi at gcc dot gnu.org
  2013-03-02  1:51 ` [Bug libstdc++/56505] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2013-03-02  1:48 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56505

             Bug #: 56505
           Summary: [4.7 Regression] cannot construct std::thread with
                    pointer to member and non-pointer
    Classification: Unclassified
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: redi@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org


Switching std::thread to use __bind_simple broke this code, because std::mem_fn
can't handle rvalues:

#include <thread>

struct S {
    void f() { }
} s;

std::thread t(&S::f, s);


This was fixed on trunk by PR 55463 but is a regression since 4.6


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-12 13:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-02  1:48 [Bug libstdc++/56505] New: [4.7 Regression] cannot construct std::thread with pointer to member and non-pointer redi at gcc dot gnu.org
2013-03-02  1:51 ` [Bug libstdc++/56505] " redi at gcc dot gnu.org
2013-03-04 10:49 ` rguenth at gcc dot gnu.org
2013-04-03 10:14 ` rguenth at gcc dot gnu.org
2013-04-11  8:01 ` rguenth at gcc dot gnu.org
2014-06-12 13:25 ` rguenth at gcc dot gnu.org

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).