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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits