https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116735
--- Comment #3 from qinzhao at gcc dot gnu.org --- This is a bug when handling the counted_by attribute when the corresponding field doesn't exist. under such situation, in addition to issue error, we also need to remove the added "counted_by" attribute from the field_decl.