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]
Other format: [Raw text]

[Bug c/71939] sole flexible array member in an anonymous structure rejected


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71939

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
For the record, I brought this up on the C committee's mailing list for
discussion.  Since the standard can be read (at least) two different ways here
I'll submit a proposal into the next mailing to clarify the intent.

I've also tested IBM XLC, Intel ICC, and Sun c99, and they all reject the code
like GCC does, so unless some new arguments in favor of the other
interpretation surface I'll go with Joseph's interpretation.

Unfortunately, since G++ has implemented the more permissive rule (as has Clang
and ICC in C++ modes, for compatibility with G++), I think it needs to be kept
the way it is to avoid breaking code that relies on it.

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