This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Your patch
- To: mark at codesourcery dot com
- Subject: Re: Your patch
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sat, 18 Mar 2000 00:53:24 +0100
- CC: nathan at codesourcery dot com, gcc-bugs at gcc dot gnu dot org, jason at cygnus dot com
- References: <20000317151139A.mitchell@codesourcery.com>
> I think we should just remove this extension, in C++.
That would be certainly a good idea. However, please note that C99
introduces a new feature, namely flexible array members:
struct S{
int count;
int fields[];
};
So I think g++ *will* have to support this feature of C99, perhaps
only in contexts where it was well-formed C99. If you remove
zero-sized arrays now, it might be worthwhile considering how flexible
array members can be implemented.
Regards,
Martin