[Bug c++/72775] [6/7 Regression] internal compiler error: in finish_expr_stmt, at cp/semantics.c:677

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Aug 17 17:40:00 GMT 2016


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.


More information about the Gcc-bugs mailing list