Re:Google broke a conditional statement that verifies passwo...
by anyfoo on Friday July 23, 2021 @03:03PM
(#27934404)
But it semantically resolves to the exact same, and so the compiler will likely treat it the same and optimize for whatever makes most sense. This may both make a written "a|b" short-circuiting, and a written "a||b" non-short-circuiting, as long as the result stays the same (which for simple bool a,b it always does).
if(error1|error2)abort();