From: Bernd Schmidt <bschmidt@redhat.com>
To: Joseph Myers <joseph@codesourcery.com>, Martin Sebor <msebor@gmail.com>
Cc: Gcc Patch List <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] c/67882 - improve -Warray-bounds for invalid offsetof
Date: Fri, 23 Oct 2015 17:45:00 -0000 [thread overview]
Message-ID: <562A7230.6060103@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1510231650090.20997@digraph.polyomino.org.uk>
On 10/23/2015 06:50 PM, Joseph Myers wrote:
> On Fri, 23 Oct 2015, Martin Sebor wrote:
>
>> But now that I'm re-reading the answer above I see that Joseph
>> was suggesting that a5_7[5][0] should be diagnosed when the patch
>> accepts it as an extension. I think we do want to accept it
>> because a5_7 is treated as a flexible array member (as an extension)
>> and so the upper bound of the major index is unknown. I.e., FA5_7
>> is defined like so:
>
> If you treat it as a flexible array member, then, yes, it would be valid.
Ok, let's install the patch as-is, and postpone the discussion of
whether that is a valid flexible array member (I certainly wouldn't have
guessed so from the documentation which only mentions [], [0] and [1] as
valid cases).
I guess this is a case where I could say either "I wrote the patch" or
"I requested changes to a patch in review"; in the latter case I can
approve it. Joseph seems on board with what we've discussed, so I'd say
please wait until Tuesday for objections then commit.
Bernd
next prev parent reply other threads:[~2015-10-23 17:45 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-09 2:55 Martin Sebor
2015-10-15 21:59 ` [PING] " Martin Sebor
2015-10-16 12:28 ` Bernd Schmidt
2015-10-16 17:27 ` Joseph Myers
2015-10-16 19:34 ` Martin Sebor
2015-10-20 13:21 ` Bernd Schmidt
2015-10-20 15:33 ` Martin Sebor
2015-10-20 15:52 ` Bernd Schmidt
2015-10-20 16:57 ` Martin Sebor
2015-10-20 17:11 ` Joseph Myers
2015-10-20 19:10 ` Martin Sebor
2015-10-20 16:54 ` Joseph Myers
2015-10-20 20:36 ` Bernd Schmidt
2015-10-20 22:19 ` Joseph Myers
2015-10-23 11:17 ` Bernd Schmidt
2015-10-23 15:15 ` Martin Sebor
2015-10-23 16:53 ` Joseph Myers
2015-10-23 17:45 ` Bernd Schmidt [this message]
2015-10-23 20:54 ` Martin Sebor
2015-10-26 11:44 ` Bernd Schmidt
2015-10-26 11:51 ` Jakub Jelinek
2015-10-26 12:01 ` Bernd Schmidt
2015-10-26 12:04 ` Jakub Jelinek
2015-10-26 12:32 ` Richard Biener
2015-10-27 11:18 ` Bernd Schmidt
2015-11-03 19:15 ` Martin Sebor
2015-11-07 23:38 ` Segher Boessenkool
2015-11-09 22:46 ` Martin Sebor
2015-11-10 0:02 ` Joseph Myers
-- strict thread matches above, loose matches on Subject: below --
2015-10-09 2:49 Martin Sebor
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=562A7230.6060103@redhat.com \
--to=bschmidt@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=joseph@codesourcery.com \
--cc=msebor@gmail.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).