From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1580 invoked by alias); 12 Apr 2011 15:48:00 -0000 Received: (qmail 1570 invoked by uid 22791); 12 Apr 2011 15:47:59 -0000 X-SWARE-Spam-Status: No, hits=-6.9 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; Tue, 12 Apr 2011 15:47:49 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3CFlg0H001731 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 12 Apr 2011 11:47:42 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3CFlgrk001108; Tue, 12 Apr 2011 11:47:42 -0400 Received: from [10.3.113.84] (ovpn-113-84.phx2.redhat.com [10.3.113.84]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p3CFleHg027811; Tue, 12 Apr 2011 11:47:41 -0400 Message-ID: <4DA4741C.3060901@redhat.com> Date: Tue, 12 Apr 2011 15:48:00 -0000 From: Jeff Law User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.9 MIME-Version: 1.0 To: Jakub Jelinek CC: "Joseph S. Myers" , gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Fix ICE with C compound literals (PR c/48517) References: <20110411195238.GA17079@tyan-ft48-01.lab.bos.redhat.com> In-Reply-To: <20110411195238.GA17079@tyan-ft48-01.lab.bos.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-04/txt/msg00904.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/11/11 13:52, Jakub Jelinek wrote: > Hi! > > On the following testcase build_unary_op ICEs, because > the element type of the array variable (which is TREE_READONLY) > unexpectedly is not TYPE_READONLY. > The problem seems to come from store_init_value, which replaces > the type of the variable with build_distinct_type_copy (TYPE_MAIN_VARIANT (type)); > on which it sets TYPE_DOMAIN. The following patch restores the > quals back. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/4.6? > > 2011-04-11 Jakub Jelinek > > PR c/48517 > * c-typeck.c (store_init_value): Set TREE_TYPE (decl) to > qualified type. > > * gcc.dg/pr48517.c: New test. OK. jeff -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNpHQcAAoJEBRtltQi2kC7G00H/0YVn3lAw5tf3wDfTwBK8G1U Jpy7iroBBgkBb/X+DSG1PRbWmxy7hsbsQvqsNI5iYVq/nbSxl7BFPxP1RxOqo07G AbFtnLlgOuAG2XfhuN/oUc4SwiU23JyX8zBhYXZEHqho6oFDTIxUOMh4+LYM92ll vPZoHprQZkS3/HsQu6BzZoEyf8mmUh5D2DMU6X3kW4Lb3d1+URdcq6xIzTXRMjga 79ZRyL/WozaTjdtw9dr1mIqhlLs2V6bOydItRl41xQTALkq52iqIYT/3+YvYuiLR z4MGT4gGO4JmE6a9K+jVVxjjtMrgiJP20l9C2/UjWiqSyuaJAHcxMrakX46gB0Q= =4Uv+ -----END PGP SIGNATURE-----