Bug 1633716

Summary: Spurious -Wmissing-field-initializers warning for anonymous structure
Product: Red Hat Enterprise Linux 7 Reporter: Aaron Conole <aconole>
Component: gccAssignee: Marek Polacek <mpolacek>
Status: CLOSED ERRATA QA Contact: Alexandra Petlanová Hájková <ahajkova>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.5CC: ahajkova, jakub, mcermak, mnewsome, ohudlick
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gcc-4.8.5-38.el7 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-06 13:00:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1655768    

Description Aaron Conole 2018-09-27 14:45:15 UTC
Request to backport:

Author: mpolacek
Date: Fri May  2 05:40:38 2014
New Revision: 209998

URL: http://gcc.gnu.org/viewcvs?rev=209998&root=gcc&view=rev
Log:
	PR c/60784
	* c-typeck.c (push_init_level): Set constructor_designated to
	p->designated for structures.

	* gcc.dg/pr60784.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr60784.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/ChangeLog

This will cause OvS 2.11 to emit warnings when building.

Comment 6 Alexandra Petlanová Hájková 2019-04-09 15:34:57 UTC
I verified the test passes with gcc-4.8.5-38.el7.

Comment 8 errata-xmlrpc 2019-08-06 13:00:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2167