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: r...@gcc.gnu.org

        ReportedBy: r...@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

Reply via email to