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.