https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122879

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
  if (TREE_CODE (TREE_TYPE (expr)) == COMPLEX_TYPE)
    {
      tree t = save_expr (expr);
      expr = (build_binary_op
              (EXPR_LOCATION (expr),
               (TREE_SIDE_EFFECTS (expr)
                ? TRUTH_OR_EXPR : TRUTH_ORIF_EXPR),
        c_common_truthvalue_conversion
               (location,
                build_unary_op (location, REALPART_EXPR, t, false)),
        c_common_truthvalue_conversion
               (location,
                build_unary_op (location, IMAGPART_EXPR, t, false)),
               false));
      goto ret;
    }

Looks like this has been this way since r0-3631-gf0b996c50ca3dc (1993)
basically complex type support was being added.

Reply via email to