Re: [C++ PATCH] Fix -Wunused-but-set-* false positive with ~ of vector type (PR c++/78949)

2017-01-04 Thread Jason Merrill
OK. On Thu, Dec 29, 2016 at 10:19 AM, Jakub Jelinek wrote: > Hi! > > For integral arg, mark_exp_read is called during > cp_perform_integral_promotions, for complex type it is called during > cp_default_conversion, but for vector types nothing actually calls it. > > Fixed

[C++ PATCH] Fix -Wunused-but-set-* false positive with ~ of vector type (PR c++/78949)

2016-12-29 Thread Jakub Jelinek
Hi! For integral arg, mark_exp_read is called during cp_perform_integral_promotions, for complex type it is called during cp_default_conversion, but for vector types nothing actually calls it. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2016-12-29 Jakub