This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50285] no known conversion for argument 1: 'X' to 'X&'
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Oct 2011 12:00:07 +0000
- Subject: [Bug c++/50285] no known conversion for argument 1: 'X' to 'X&'
- Auto-submitted: auto-generated
- References: <bug-50285-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50285
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
CC| |manu at gcc dot gnu.org
Resolution| |INVALID
--- Comment #2 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2011-10-10 12:00:07 UTC ---
I don't get why this is WAITING, if you have suggestions on how to improve the
diagnostic, please REOPEN. Otherwise this is not a bug.
Clang prints something similar:
/tmp/webcompile/_26316_0.cc:11:5: error: no viable overloaded '='
x = f();
~ ^ ~~~
/tmp/webcompile/_26316_0.cc:3:6: note: candidate function not viable: no known
conversion from 'X' to 'X &' for 1st argument
X& operator=(X&);
^
1 error generated.