This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH to reject initializating flexible array members in constructors (PR c++/72775)
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