https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92956
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Last reconfirmed| |2019-12-17 Resolution|DUPLICATE |--- Ever confirmed|0 |1 --- Comment #6 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- (In reply to Martin Sebor from comment #2) > -Wstringop-overflow is a C-family only option that shouldn't be enabled for > Fortran. It took some effort to make it work that way (see pr80545 for the > background) and there's no test for it so either the logic put in there > still isn't correct or something has regressed. I don't have time right now to read up the history/rationale behind that (enabling a generic? middle-end warning only for certain source languages), but I'll note that -- as we've seen in PR92952 -- it's actually useful in other scenarios, too? (And if only to make the analysis' code more robust.) (In reply to Martin Sebor from comment #5) > Thanks! Yes, the code made the incorrect assumption that array indices were > zero-based. I just committed r279445 with a fix so I'm going to assume it > takes care of these warnings as well as will resolve this as a duplicate. This problem persists, thus: > *** This bug has been marked as a duplicate of bug 92952 *** Re-opened.