RE: [RFA] BINOP_DIV and ptyp command

Pierre Muller
2008-01-30T21:55:08Z

Doug, I like your patch but
> + else if (TYPE_CODE (type1) == TYPE_CODE_BOOL
> + && TYPE_CODE (type2) == TYPE_CODE_BOOL)
> + {
> + switch (op)
> + {
> + case BINOP_BITWISE_AND:
> + case BINOP_BITWISE_IOR:
> + case BINOP_BITWISE_XOR:
> + case BINOP_EQUAL:
> + case BINOP_NOTEQUAL:
> + break;
> + default:
> + error (_("Invalid operation on booleans."));
> + }

I would have expected that only
BINOP_LOGICAL_OR and BINOP_LOGICAL_AND
are valid for Booleans.
Am I wrong?

Pierre Muller