From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9325 invoked by alias); 19 Oct 2014 16:18:20 -0000 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 Received: (qmail 9306 invoked by uid 89); 19 Oct 2014 16:18:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 19 Oct 2014 16:18:18 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XftBO-0005p5-Pb from joseph_myers@mentor.com ; Sun, 19 Oct 2014 09:18:14 -0700 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.181.6; Sun, 19 Oct 2014 17:18:13 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.82) (envelope-from ) id 1XftBM-00051U-RC; Sun, 19 Oct 2014 16:18:12 +0000 Date: Sun, 19 Oct 2014 16:37:00 -0000 From: "Joseph S. Myers" To: Marek Polacek CC: GCC Patches Subject: Re: [C PATCH] Another initialization fix (PR c/63567) In-Reply-To: <20141019150436.GW10501@redhat.com> Message-ID: References: <20141019150436.GW10501@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2014-10/txt/msg01857.txt.bz2 On Sun, 19 Oct 2014, Marek Polacek wrote: > It turned out that there is another spot where we need to allow > initializing objects with static storage duration with compound > literals even in C99 -- when the compound literal is inside the > initializer. Fixed in the same way as previously. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? > > 2014-10-18 Marek Polacek > > PR c/63567 > * c-typeck.c (output_init_element): Allow initializing objects with > static storage duration with compound literals even in C99 and add > pedwarn for it. > > * gcc.dg/pr63567-3.c: New test. > * gcc.dg/pr63567-4.c: New test. OK. -- Joseph S. Myers joseph@codesourcery.com