https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82813
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |80545 --- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- The warning will go away once pr80545 is fixed but I wonder if a better (independent) solution in this case is to detect that the code is, in fact, unreachable, and avoid emitting it to begin with. Alternatively, if it is too hard to determine that it's unreachable, it should be possible to detect that the memcpy call is invalid earlier and replace it with either __builtin_unreachable or __builtin_trap. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80545 [Bug 80545] option -Wstringop-overflow not recognized by Fortran