https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108980
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Warning text missing the |[13 Regression] Warning |warning itself (GCC 13) |text missing the warning | |itself (GCC 13) --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The logic is: if (warned || out_of_bound) { if ((out_of_bound && warn_strict_flex_arrays) && (((sam == special_array_member::trail_0) || (sam == special_array_member::trail_1) || (sam == special_array_member::trail_n)) && DECL_NOT_FLEXARRAY (afield_decl))) warned = warning_at (location, ... if (DECL_P (ref)) inform (DECL_SOURCE_LOCATION (ref), "while referencing %qD", ref); if (rec && DECL_P (rec)) inform (DECL_SOURCE_LOCATION (rec), "defined here %qD", rec); The checks before calling inform should include a check for warned . Started with r13-4748-g2a27ae32fabf85 .