This is the mail archive of the gcc-bugs@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]

Re: Your patch


> 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

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