https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98322
ktkachov at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID CC| |ktkachov at gcc dot gnu.org Status|UNCONFIRMED |RESOLVED --- Comment #1 from ktkachov at gcc dot gnu.org --- I don't think that's true. Note, that with -Wall you get the warning: true.c: In function 'always_true': true.c:3:29: warning: '~' on a boolean expression [-Wbool-operation] 3 | return (a == b) == (~a ^ b); | ^ true.c:3:29: note: did you mean to use logical not? 3 | return (a == b) == (~a ^ b); | ^ |