This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/72775] [6/7 Regression] internal compiler error: in finish_expr_stmt, at cp/semantics.c:677
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Aug 2016 17:39:55 +0000
- Subject: [Bug c++/72775] [6/7 Regression] internal compiler error: in finish_expr_stmt, at cp/semantics.c:677
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-72775-4@http.gcc.gnu.org/bugzilla/>
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.