https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69433
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-08-25 CC| |egallager at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > Hmm, I don't know how GCC can detect this except with optimizations because > the assignment to s happens at runtime. Well there's already other warnings that rely on optimizations... confirming that this warning would be nice to have.