https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106457
--- Comment #5 from qinzhao at gcc dot gnu.org --- I am wondering whether the following: 12781 /* If the object itself is the array it is not at struct end. */ 12782 if (DECL_P (ref_to_array)) 12783 return false; should be: 12781 /* If the object itself is the array it is not at struct end. */ 12782 if (DECL_P (ref)) 12783 return false; ??