https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105316
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The warning is correct __str goes out of the scope when the statement expression ends.