[Bug c++/98750] does not detect dead code [-Wunreachable-code-break]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98750 Eric Gallager changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #6 from Eric Gallager --- actually this is a dup of bug 92479 *** This bug has been marked as a duplicate of bug 92479 ***
[Bug c++/98750] does not detect dead code [-Wunreachable-code-break]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98750 Eric Gallager changed: What|Removed |Added Summary|does not detect dead code |does not detect dead code ||[-Wunreachable-code-break] Blocks||87403 CC||egallager at gcc dot gnu.org --- Comment #5 from Eric Gallager --- (In reply to Andrew Pinski from comment #4) > Basically PR 46476 but for break instead of return. As mentioned in that bug (bug 46476 comment 10), clang puts them under separate flags, so I'm having this block the "new-warning" meta-bug Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87403 [Bug 87403] [Meta-bug] Issues that suggest a new warning
[Bug c++/98750] does not detect dead code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98750 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|2021-01-20 00:00:00 |2021-08-17 Status|UNCONFIRMED |NEW Severity|normal |enhancement Depends on||46476 --- Comment #4 from Andrew Pinski --- Basically PR 46476 but for break instead of return. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46476 [Bug 46476] Missing Warning about unreachable code after return [-Wunreachable-code-return]
[Bug c++/98750] does not detect dead code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98750 Jonathan Wakely changed: What|Removed |Added Ever confirmed|1 |0 Status|WAITING |UNCONFIRMED --- Comment #3 from Jonathan Wakely --- GCC's -Wunreachable was removed years ago.
[Bug c++/98750] does not detect dead code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98750 --- Comment #2 from Tiago Macarios --- Correct. I was expecting a warning there.
[Bug c++/98750] does not detect dead code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98750 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |WAITING CC||marxin at gcc dot gnu.org Last reconfirmed||2021-01-20 Ever confirmed|0 |1
[Bug c++/98750] does not detect dead code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98750 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Jonathan Wakely --- GCC doesn't emit any call to f() so it does detect it. Do you mean that it doesn't give a warning?