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++/72775] [6/7 Regression] internal compiler error: in finish_expr_stmt, at cp/semantics.c:677


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

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Would it be possible to take the size of the in-class initialized flexible
array member into account when computing the size of the object to allocate? 
That way the example in comment #0 could be accepted and handled correctly but
one where the flexible array member were initialized in a ctor-initializer list
could be rejected.

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