Re: [PATCH] c++: Don't add built-in operator for ++ on bool.

2020-05-18 Thread Jason Merrill via Gcc-patches
On 5/16/20 6:33 PM, Marek Polacek wrote: This feels extremely obscure but at least it's an opportunity to fix the comments. P0002R1 removed deprecated operator++(bool) in C++17 so let's avoid adding a builtin overload candidate for ++ when the type is bool. Bootstrapped/regtested on x86_64-pc-l

[PATCH] c++: Don't add built-in operator for ++ on bool.

2020-05-16 Thread Marek Polacek via Gcc-patches
This feels extremely obscure but at least it's an opportunity to fix the comments. P0002R1 removed deprecated operator++(bool) in C++17 so let's avoid adding a builtin overload candidate for ++ when the type is bool. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? * call.c (