Re: [PATCH] c++: Tweak for -Wpessimizing-move in templates [PR89780]

2022-08-06 Thread Jason Merrill via Gcc-patches
On 8/4/22 11:46, Marek Polacek wrote: In my previous patches I've been extending our std::move warnings, but this tweak actually dials it down a little bit. As reported in bug 89780, it's questionable to warn about expressions in templates that were type-dependent, but aren't anymore because we'

[PATCH] c++: Tweak for -Wpessimizing-move in templates [PR89780]

2022-08-04 Thread Marek Polacek via Gcc-patches
In my previous patches I've been extending our std::move warnings, but this tweak actually dials it down a little bit. As reported in bug 89780, it's questionable to warn about expressions in templates that were type-dependent, but aren't anymore because we're instantiating the template. As in,