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
This commit is contained in:
parent
8fbe2d958a
commit
f5733617e3
3 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
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));
|
||||
|
|
Loading…
Add table
Reference in a new issue