On Tue, 24 Jul 2018, Jakub Jelinek wrote: > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk and > release branches? > > 2018-07-24 Jakub Jelinek <ja...@redhat.com> > > PR c/85704 > * c-typeck.c (field_decl_cmp): New function. > (output_pending_init_elements): Use it for field comparisons > instead of pure bit_position comparisons. > > * gcc.c-torture/compile/pr85704.c: New test.
OK, though I'm a bit uneasy about both c-decl.c and c-typeck.c having static field_decl_cmp functions that do completely different comparisons. -- Joseph S. Myers jos...@codesourcery.com