This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C PATCH] Enable initializing statics with COMPOUND_LITERAL_EXPR in C99 (PR c/63567)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 17 Oct 2014 20:58:10 +0000
- Subject: Re: [C PATCH] Enable initializing statics with COMPOUND_LITERAL_EXPR in C99 (PR c/63567)
- Authentication-results: sourceware.org; auth=none
- References: <20141017112544 dot GR10501 at redhat dot com> <Pine dot LNX dot 4 dot 64 dot 1410171548340 dot 22473 at digraph dot polyomino dot org dot uk> <20141017205253 dot GV10501 at redhat dot com>
On Fri, 17 Oct 2014, Marek Polacek wrote:
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
>
> 2014-10-17 Marek Polacek <polacek@redhat.com>
>
> PR c/63567
> * c-typeck.c (digest_init): Allow initializing objects with static
> storage duration with compound literals even in C99 and add pedwarn
> for it.
>
> * gcc.dg/pr61096-1.c: Change dg-error into dg-warning.
> * gcc.dg/pr63567-1.c: New test.
> * gcc.dg/pr63567-2.c: New test.
OK.
--
Joseph S. Myers
joseph@codesourcery.com