https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101832
--- Comment #9 from qinzhao at gcc dot gnu.org --- I will add a routine in tree-object-size.cc to check whether a reference to a structure or union field includes a flexible array member in the inner structure, such structure or union should be considered as having flexible size, too. then should resolve this bug.