public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Nathan Sidwell <nathan@acm.org>
To: Paolo Carlini <paolo.carlini@oracle.com>,
	"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Cc: Jason Merrill <jason@redhat.com>
Subject: Re: [C++ Patch Ping] PR 64644 (""warning: anonymous union with no members" should be an error with -pedantic-errors")
Date: Fri, 15 Sep 2017 15:59:00 -0000	[thread overview]
Message-ID: <7f449c18-a3c1-d45d-4f95-c67b8d91e47f@acm.org> (raw)
In-Reply-To: <e3bef9aa-ab5c-2b15-d858-b6dd5506f5b7@oracle.com>

On 09/15/2017 05:53 AM, Paolo Carlini wrote:
> Hi,
> 
> gently pinging this.
> 
> On 16/06/2017 15:47, Paolo Carlini wrote:
>> Hi,
>>
>> submitter and Manuel analyzed this a while ago and came to the 
>> conclusion - which I think is still valid vs the current working draft 
>> - that strictly speaking this kind of code violates [dcl.dcl], thus a 
>> pedwarn seems more suited than a plain warning. The below one-liner, 
>> suggested by Manuel at the time, passes testing on x86_64-linux 
>> together with my testsuite changes.
> 
>      https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01193.html

Ok.  class.union.anon has the member-specification as non-optional.

nathan

-- 
Nathan Sidwell

      reply	other threads:[~2017-09-15 15:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-16 13:47 [C++ Patch] " Paolo Carlini
2017-07-10 14:40 ` Paolo Carlini
2017-09-15  9:53 ` [C++ Patch Ping] " Paolo Carlini
2017-09-15 15:59   ` Nathan Sidwell [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=7f449c18-a3c1-d45d-4f95-c67b8d91e47f@acm.org \
    --to=nathan@acm.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jason@redhat.com \
    --cc=paolo.carlini@oracle.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).