This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C PATCH] Enable initializing statics with COMPOUND_LITERAL_EXPR in C99 (PR c/63567)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]