public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Joseph Myers <joseph@codesourcery.com>
To: Marek Polacek <polacek@redhat.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] c: -Wmissing-field-initializers and designated inits [PR82283, PR84685]
Date: Tue, 22 Mar 2022 20:35:42 +0000	[thread overview]
Message-ID: <alpine.DEB.2.22.394.2203222035150.17385@digraph.polyomino.org.uk> (raw)
In-Reply-To: <20220322201130.140750-1-polacek@redhat.com>

On Tue, 22 Mar 2022, Marek Polacek via Gcc-patches wrote:

> 	PR c/82283
> 	PR c/84685
> 
> gcc/c/ChangeLog:
> 
> 	* c-typeck.cc (struct initializer_stack): Add 'designated' member.
> 	(start_init): Set it.
> 	(finish_init): Restore constructor_designated.
> 	(push_init_level): Set constructor_designated to the value of
> 	constructor_designated in the upper constructor_stack.
> 
> gcc/testsuite/ChangeLog:
> 
> 	* gcc.dg/Wmissing-field-initializers-1.c: New test.
> 	* gcc.dg/Wmissing-field-initializers-2.c: New test.
> 	* gcc.dg/Wmissing-field-initializers-3.c: New test.
> 	* gcc.dg/Wmissing-field-initializers-4.c: New test.
> 	* gcc.dg/Wmissing-field-initializers-5.c: New test.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com

      reply	other threads:[~2022-03-22 20:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-22 20:11 Marek Polacek
2022-03-22 20:35 ` Joseph Myers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.22.394.2203222035150.17385@digraph.polyomino.org.uk \
    --to=joseph@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=polacek@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).