https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109514
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-04-14 CC| |jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 --- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> --- Confirmed. -Wdangling-pointer shouldn't warn about a store to an unknown object. And it should be able to figure out that this store is to sr itself, and not warn for that reason as well.