But the compiler sees it as one assignment statement with a syntax error.
I disagree.
The parentheses will force it to see it as two assignments, separated by a logical OR.
Since the LHS of the OR is true (because -1 is non zero), the RHS is not evaluated.