https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112840
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This seems more like something for analyzier rather than a generic warning due to it requires keeping track of the path where the access is located.