[cfe-commits] r140594 - in /cfe/trunk: lib/Sema/SemaInit.cpp test/SemaCXX/rval-references.cpp

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Mon Sep 26 18:32:18 PDT 2011


On 2011-09-26 21:11, Eli Friedman wrote:
> Author: efriedma
> Date: Mon Sep 26 20:11:35 2011
> New Revision: 140594
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=140594&view=rev
> Log:
> PR11009: Fix a FIXME which was leading to an assertion failure with rvalue references.
> 


Thanks! your solution is cleaner than mine.

> +
> +// PR11009
> +struct MoveConvertible {
> +  operator int&& () const;
> +};
> +void moveConstruct() {
> +  (void)(int)MoveConvertible();
> +}
> 


but I think this has to go in test/CodeGenCXX/rvalue-references.cpp, the
old assertion would only fail during codegen.

Cheers,
Rafael



More information about the cfe-commits mailing list