[Bug libstdc++/56505] New: [4.7 Regression] cannot construct std::thread with pointer to member and non-pointer
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 2 01:48:00 GMT 2013
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
More information about the Gcc-bugs
mailing list