On 16 February 2016 at 16:37, Jeff Law <l...@redhat.com> wrote: > On 02/16/2016 07:21 AM, Bernd Schmidt wrote: >> >> On 02/08/2016 05:30 PM, Jeff Law wrote: >>> >>> On 01/29/2016 04:40 AM, Bernd Schmidt wrote: >>>> >>>> c/ >>>> PR c/69522 >>>> * c-parser.c (c_parser_braced_init): New arg outer_obstack. All >>>> callers changed. If nested_p is true, use it to call >>>> finish_implicit_inits. >>>> * c-tree.h (finish_implicit_inits): Declare. >>>> * c-typeck.c (finish_implicit_inits): New function. Move code >>>> from ... >>>> (push_init_level): ... here. >>>> (set_designator, process_init_element): Call finish_implicit_inits. >>>> >>>> testsuite/ >>>> PR c/69522 >>>> gcc.dg/pr69522.c: New test. >>> >>> OK. Thanks for tracking this down. >> >> >> Ok for branches too? > Hi,
FWIW, I'm seeing the new test failing on the 4.9 branch: gcc/testsuite/gcc.dg/pr69522.c:2:8: error: struct has no members [-Wpedantic] gcc/testsuite/gcc.dg/pr69522.c:9:8: error: ISO C forbids empty initializer braces [-Wpedantic] > Yes. Definitely given it's a memory management issue. > > jeff