On Mon, 5 Sep 2016, Marek Polacek wrote: > Still not sure about other operations. I guess no one would > object to warning on bool1 % bool2, but should we warn for > bool1 + bool2?
I think boolean addition (with the result interpreted as an integer, not converted back to boolean) is perfectly reasonable - counting the number of flags that are true, for example (say if there are several conditions and it's an error for more than one of them to hold - of course that would be bool1 + bool2 + bool3 + bool4, etc.). -- Joseph S. Myers jos...@codesourcery.com