C++ PATCH to reject initializating flexible array members in constructors (PR c++/72775)
Jason Merrill
jason@redhat.com
Fri Dec 9 21:50:00 GMT 2016
On Fri, Dec 9, 2016 at 11:33 AM, Martin Sebor <msebor@gmail.com> wrote:
> For flexible array members, because they're not in C++, we get to
> make up the rules that make the most sense to us. IMO, they should
> fit in well with the rest of the language.
I disagree; we should support C code, but flexible arrays don't really
fit with the C++ object model, so I don't think trying to do anything
clever with them in constructors is worthwhile.
Jason
More information about the Gcc-patches
mailing list