This is the mail archive of the gcc@gcc.gnu.org mailing 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]

Re: PR24138 and flexible arrays in C++


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]