[Bug libstdc++/57898] New: std::bind incompatible with ref-qualified ptmf
potswa at mac dot com
gcc-bugzilla@gcc.gnu.org
Mon Jul 15 08:26:00 GMT 2013
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.
More information about the Gcc-bugs
mailing list