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

            Bug ID: 57898
           Summary: std::bind incompatible with ref-qualified ptmf
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: potswa at mac dot com

#include <functional>

struct s { void f() &; };
s *p;

auto b = std::bind( &s::f, p );

Resulting error:

error: forming reference to qualified function type ‘void() &’

The original case produced an overload resolution failure for std::bind, with a
complaint like "no known conversion for argument 1 from void(t::*)(arg&&) to
void(t::*&&)(arg&&)", i.e. it's having trouble binding the ptmf reference.
However I have isolated that problem. It seems there may an underlying issue in
the compiler though.

Reply via email to