https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87109
--- Comment #5 from Marek Polacek ---
Author: mpolacek
Date: Thu Sep 20 23:20:19 2018
New Revision: 264452
URL: https://gcc.gnu.org/viewcvs?rev=264452&root=gcc&view=rev
Log:
PR c++/87109 - wrong ctor with maybe-rvalue semantics.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87109
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87109
--- Comment #3 from Marek Polacek ---
Author: mpolacek
Date: Wed Sep 5 21:17:47 2018
New Revision: 264132
URL: https://gcc.gnu.org/viewcvs?rev=264132&root=gcc&view=rev
Log:
PR c++/87109, wrong overload with ref-qualifiers.
* cal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87109
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87109
--- Comment #1 from Marek Polacek ---
I guess this can serve as a run-time testcase:
#include
struct C { int i; };
struct A {
operator C() & { return { 1 }; }
operator C() && { return { 2 }; }
};
C f(A a)
{
return a;
}
C f2(A a)
{
re