From: Dave Korn <dave.korn.cygwin@googlemail.com>
To: Andrew Haley <aph@redhat.com>
Cc: Dave Korn <dave.korn.cygwin@googlemail.com>,
"gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Re: What does zero-length array mean at file scope?
Date: Sun, 24 May 2009 12:29:00 -0000 [thread overview]
Message-ID: <4A192ADD.1060104@gmail.com> (raw)
In-Reply-To: <4A1922B0.9090209@redhat.com>
Dave Korn wrote:
> I've read http://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html about six
> times and can't see anywhere it even hints that you can use this syntax
> anywhere except as the trailing member of a struct.
Andrew Haley wrote:
> But zero-length arrays are a gcc extension. There's nothing that limits
> them to the last member of a struct. zero-length arrays must be rejected
> with -pedantic, but not otherwise.
> Because it's a documented gcc extension.
Obviously I can't see for looking; can you please point me to the precise
chapter/page/paragraph/line that I should have found earlier?
cheers,
DaveK
next prev parent reply other threads:[~2009-05-24 10:57 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-24 9:07 Dave Korn
2009-05-24 9:21 ` Dave Korn
2009-05-24 9:26 ` Dave Korn
2009-05-24 10:34 ` Andrew Haley
2009-05-24 10:57 ` Dave Korn
2009-05-24 12:03 ` Andrew Haley
2009-05-24 12:29 ` Dave Korn [this message]
2009-05-24 12:41 ` Dave Korn
2009-05-24 20:57 ` Andrew Haley
2009-05-24 22:51 ` Dave Korn
2009-05-28 22:48 ` Joseph S. Myers
2009-05-28 23:18 ` Dave Korn
2009-05-29 10:17 ` Andrew Haley
2009-05-28 22:45 ` Joseph S. Myers
2009-05-29 9:04 ` Dave Korn
2009-05-24 9:47 Uros Bizjak
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=4A192ADD.1060104@gmail.com \
--to=dave.korn.cygwin@googlemail.com \
--cc=aph@redhat.com \
--cc=gcc@gcc.gnu.org \
/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).