Commit f5733617 by Scott Snyder Committed by Mark Mitchell

decl2.c (build_expr_from_tree): Handle REALPART_EXPR and IMAGPART_EXPR.

1999-11-02  Scott Snyder  <snyder@fnal.gov>

        * decl2.c (build_expr_from_tree): Handle REALPART_EXPR and
        IMAGPART_EXPR.
	* pt.c (tsubst_copy): Likewise.

From-SVN: r30366
parent 8fbe2d95
1999-11-02 Scott Snyder <snyder@fnal.gov>
* decl2.c (build_expr_from_tree): Handle REALPART_EXPR and
IMAGPART_EXPR.
* pt.c (tsubst_copy): Likewise.
1999-11-01 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (maybe_make_one_only): Always make things comdat on
......
......@@ -3744,6 +3744,8 @@ build_expr_from_tree (t)
case TRUTH_NOT_EXPR:
case ADDR_EXPR:
case CONVERT_EXPR: /* Unary + */
case REALPART_EXPR:
case IMAGPART_EXPR:
if (TREE_TYPE (t))
return t;
return build_x_unary_op (TREE_CODE (t),
......
......@@ -6897,6 +6897,8 @@ tsubst_copy (t, args, complain, in_decl)
case ARROW_EXPR:
case THROW_EXPR:
case TYPEID_EXPR:
case REALPART_EXPR:
case IMAGPART_EXPR:
return build1
(code, tsubst (TREE_TYPE (t), args, complain, in_decl),
tsubst_copy (TREE_OPERAND (t, 0), args, complain, in_decl));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment