From: Phil Blundell <philb@gnu.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-networking][PATCH 2/2] libnetfilter: Avoid using VLAs
Date: Sat, 03 Oct 2015 23:34:35 +0100 [thread overview]
Message-ID: <1443911675.32723.0.camel@gnu.org> (raw)
In-Reply-To: <1443902125-30247-2-git-send-email-raj.khem@gmail.com>
On Sat, 2015-10-03 at 12:55 -0700, Khem Raj wrote:
> VLAs in non POD data types like structures and unions
> are not a standard feature of C language and gcc has specific
> implementation which other compilers dont have specifically clang, and
> they refuse to implement it since its non standard.
The reference to "POD" here is a bit confusing. By the generally
accepted meaning of the term, structs and unions would in fact be POD
just like any other C type. But you seem to be using the term here to
mean something along the lines of "non-aggregate type", which isn't a
usage I've previously encountered.
This is particularly confusing in this context because there is a
different clang limitation which applies to VLAs where the
variable-length element is not POD, irrespective of whether it is inside
an aggregate or not, and someone reading your comment might be misled
into thinking that this was the issue here.
p.
next prev parent reply other threads:[~2015-10-03 22:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-03 19:55 [meta-networking][PATCH 1/2] net-snmp: Fix build with gcc5 Khem Raj
2015-10-03 19:55 ` [meta-networking][PATCH 2/2] libnetfilter: Avoid using VLAs Khem Raj
2015-10-03 22:34 ` Phil Blundell [this message]
2015-10-03 22:55 ` Khem Raj
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=1443911675.32723.0.camel@gnu.org \
--to=philb@gnu.org \
--cc=openembedded-devel@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.