This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50285] no known conversion for argument 1: 'X' to 'X&'


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]