Re: C++ PATCH for build_throw

2018-09-04 Thread Jason Merrill
OK. On Tue, Sep 4, 2018 at 7:01 PM, Marek Polacek wrote: > It occurred to me that we should be able to use treat_lvalue_as_rvalue_p in > the > second context where we're supposed to use a move operation as well. Except > that for a throw-expression, the operand may not be a function parameter.

C++ PATCH for build_throw

2018-09-04 Thread Marek Polacek
It occurred to me that we should be able to use treat_lvalue_as_rvalue_p in the second context where we're supposed to use a move operation as well. Except that for a throw-expression, the operand may not be a function parameter. While at it, also make use of CP_TYPE_VOLATILE_P. Bootstrapped/regt