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.

Reply via email to