From patchwork Mon Apr 18 00:51:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Merrill X-Patchwork-Id: 91646 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 800D2B6EF3 for ; Mon, 18 Apr 2011 10:51:31 +1000 (EST) Received: (qmail 31037 invoked by alias); 18 Apr 2011 00:51:29 -0000 Received: (qmail 30985 invoked by uid 22791); 18 Apr 2011 00:51:28 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Apr 2011 00:51:14 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3I0pEwn000546 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 17 Apr 2011 20:51:14 -0400 Received: from [127.0.0.1] (ovpn-113-102.phx2.redhat.com [10.3.113.102]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3I0pDOv015775 for ; Sun, 17 Apr 2011 20:51:13 -0400 Message-ID: <4DAB8B01.2030109@redhat.com> Date: Sun, 17 Apr 2011 17:51:13 -0700 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: gcc-patches List Subject: Re: C++ PATCH for c++/48531 (ICE with value-initialization of array) References: <4DAB8AB0.70300@redhat.com> In-Reply-To: <4DAB8AB0.70300@redhat.com> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org And a minor change I noticed while looking at this area. commit bd069335f569a8c148aec0daf81b3e3a57f31ad4 Author: Jason Merrill Date: Sat Apr 16 17:31:36 2011 -0700 * tree.c (get_target_expr): Handle VEC_INIT_EXPR. diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index ad004bb..25f2c32 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -605,6 +605,8 @@ get_target_expr (tree init) { if (TREE_CODE (init) == AGGR_INIT_EXPR) return build_target_expr (AGGR_INIT_EXPR_SLOT (init), init); + else if (TREE_CODE (init) == VEC_INIT_EXPR) + return build_target_expr (VEC_INIT_EXPR_SLOT (init), init); else return build_target_expr_with_type (init, TREE_TYPE (init)); }