Joe Buck - Re: PR24138 and flexible arrays in C++ (original) (raw)
This is the mail archive of the gcc@gcc.gnu.orgmailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] |
- From: Joe Buck
- To: Gabriel Dos Reis
- Cc: Mark Mitchell ,Aldy Hernandez , gcc at gcc dot gnu dot org, jconner at apple dot com
- Date: Thu, 10 Nov 2005 14:50:48 -0800
- Subject: Re: PR24138 and flexible arrays in C++
- References: <20051110124156.GA24909@redhat.com> <4373BA75.3020706@codesourcery.com> <m3psp83zdj.fsf@uniton.integrable-solutions.net>
On Thu, Nov 10, 2005 at 11:35:20PM +0100, Gabriel Dos Reis wrote:
Mark Mitchell mark@codesourcery.com writes:
| Ideally, I think we would support it; I'm just not sure exactly what | restrictions, if any, should apply to the flexible array data member. | For example, perhaps the type of the elements should be one that does | not require construction. Perhaps that's OK; I'm just not sure.
Maybe accept it just the way it is used in C, e.g. POD, no inheritance, no fancy stuff.
I think we have to do at least that, because using the extension in C is common, and headers get shared by C and C++. It's probably fine to refuse it in the context of inheritance and the like.
- References:
- PR24138 and flexible arrays in C++
* From: Aldy Hernandez - Re: PR24138 and flexible arrays in C++
* From: Mark Mitchell - Re: PR24138 and flexible arrays in C++
* From: Gabriel Dos Reis
- PR24138 and flexible arrays in C++
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |