https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79159
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |6.3.0 Keywords| |diagnostic Last reconfirmed| |2017-01-20 Component|c++ |tree-optimization CC| |msebor at gcc dot gnu.org Ever confirmed|0 |1 Known to fail| |7.0 --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- Confirmed. r235817 is the first revision that issues the warning. Changing finalDigits to take n by value eliminates the warning,