On Thu, Apr 27, 2017 at 05:10:24PM -0400, David Malcolm wrote:
> +  /* First try const_cast.  */
> +  trial = build_const_cast (dst_type, orig_expr, 0 /* complain */);
> +  if (trial != error_mark_node)
> +    return "const_cast";
> +
> +  /* If that fails, try static_cast.  */
> +  trial = build_static_cast (dst_type, orig_expr, 0 /* complain */);
> +  if (trial != error_mark_node)
> +    return "static_cast";
> +
> +  /* Finally, try reinterpret_cast.  */
> +  trial = build_reinterpret_cast (dst_type, orig_expr, 0 /* complain */);
> +  if (trial != error_mark_node)
> +    return "reinterpret_cast";

I think you'll want tf_none instead of 0 /* complain */ in these.

        Marek

Reply via email to