This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59296] [c++11] ref-qualified member function is ambiguous
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Mar 2014 18:53:57 +0000
- Subject: [Bug c++/59296] [c++11] ref-qualified member function is ambiguous
- Auto-submitted: auto-generated
- References: <bug-59296-4 at http dot gcc dot gnu dot org/bugzilla/>
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