On 2/18/19 12:58 PM, Jakub Jelinek wrote:
Hi!
The if (TYPE_REF_IS_RVALUE (type)) code has been added recently,
but build_target_expr_with_type asserts that the expression doesn't have
void type. Fixed by using the old handling in that case (the expression is
not lvalue in that case and diagnostics is emitted if complain).
Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
2019-02-18 Jakub Jelinek <ja...@redhat.com>
PR c++/89391
* typeck.c (build_reinterpret_cast_1): Don't handle void to
&& conversion go through build_target_expr_with_type.
OK.
Jason