Re: [PATCH] c++: decltype of non-dependent call of class type [PR105386]

2022-04-26 Thread Jason Merrill via Gcc-patches
On 4/26/22 09:45, Patrick Palka wrote: We need to pass tf_decltype when instantiating a non-dependent decltype operand, like tsubst does in the dependent case, so that we avoid materializing a temporary for a prvalue operand. Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK

[PATCH] c++: decltype of non-dependent call of class type [PR105386]

2022-04-26 Thread Patrick Palka via Gcc-patches
We need to pass tf_decltype when instantiating a non-dependent decltype operand, like tsubst does in the dependent case, so that we avoid materializing a temporary for a prvalue operand. Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk/11? PR c++/105386