On Thu, 27 Jan 2005, Dale Johannesen wrote:
I'm not sure where in the twisty little passages this should be fixed,
but fold_binary_op_with_conditional_arg is taking a type from the
EQ_EXPR, even though that should always be boolean (right)? Which is
suspicious, and I'm inclined to think it should be using the input
type
instead.
Does this look like the right approach?
Ahh, the perils of STRIP_NOPS. Firstly, the type that corresponds to
the result of EQ_EXPR is defined by the front-end, "bool" in C++, "int"
in C, and even several different LOGICAL(n) types in the gfortran
front-ends, so "fold" should always be using the type of the EQ_EXPR.