Compiler error with logical bitwise operations