[Bug c++/59296] [c++11] ref-qualified member function is ambiguous

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 26 18:54:00 GMT 2014


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
reduced:

struct Type
{
  void get() const& { }
  void get() const&& { }
};

int main()
{
  Type{}.get();
}

The ambiguity happens when both overloads are const-qualified and *this is an
rvalue



More information about the Gcc-bugs mailing list