OSDN Git Service

2005-12-02 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Dec 2005 17:04:00 +0000 (17:04 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Dec 2005 17:04:00 +0000 (17:04 +0000)
* semantics.c (simplify_aggr_init_expr): Use buildN instead
of build.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107903 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 417f277..1197d02 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-02  Richard Guenther  <rguenther@suse.de>
+
+       * semantics.c (simplify_aggr_init_expr): Use buildN instead
+       of build.
+
 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        * parser.c (cp_lexer_new_main): Usr GGC_RESIZEVEC instead of
index 95387e1..0b65325 100644 (file)
@@ -2931,7 +2931,7 @@ simplify_aggr_init_expr (tree *tp)
       call_expr = build_aggr_init (slot, call_expr,
                                   DIRECT_BIND | LOOKUP_ONLYCONVERTING);
       pop_deferring_access_checks ();
-      call_expr = build (COMPOUND_EXPR, TREE_TYPE (slot), call_expr, slot);
+      call_expr = build2 (COMPOUND_EXPR, TREE_TYPE (slot), call_expr, slot);
     }
 
   *tp = call_expr;