public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/70954] -Wmisleading-indentation false positive on GNU "ed" [not found] <bug-70954-4@http.gcc.gnu.org/bugzilla/> @ 2023-11-01 8:31 ` muecker at gwdg dot de 2023-11-01 14:01 ` [Bug c/70954] -Wmisleading-indentation false positive on code from GNU "ed" (featuring a label) egallager at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: muecker at gwdg dot de @ 2023-11-01 8:31 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70954 Martin Uecker <muecker at gwdg dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |muecker at gwdg dot de --- Comment #2 from Martin Uecker <muecker at gwdg dot de> --- Here is another example of what appears to be the same bug. Reported here: https://gcc.gnu.org/pipermail/gcc/2023-November/242803.html I think it would be useful of the title of this report could be changed to mention "label". /* * miside.c * MWE for a wrong warning shown with gcc -Wmisleading-indentation */ void good(int c) { label: while (c != '-'); if (c != '-') goto label; } void bad(int c) { label: while (c != '-'); if (c != '-') goto label; } https://gcc.godbolt.org/z/6MMsds1bd ^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/70954] -Wmisleading-indentation false positive on code from GNU "ed" (featuring a label) [not found] <bug-70954-4@http.gcc.gnu.org/bugzilla/> 2023-11-01 8:31 ` [Bug c/70954] -Wmisleading-indentation false positive on GNU "ed" muecker at gwdg dot de @ 2023-11-01 14:01 ` egallager at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: egallager at gcc dot gnu.org @ 2023-11-01 14:01 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70954 Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|-Wmisleading-indentation |-Wmisleading-indentation |false positive on GNU "ed" |false positive on code from | |GNU "ed" (featuring a | |label) CC| |egallager at gcc dot gnu.org --- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Martin Uecker from comment #2) > Here is another example of what appears to be the same bug. Reported here: > https://gcc.gnu.org/pipermail/gcc/2023-November/242803.html > > I think it would be useful of the title of this report could be changed to > mention "label". OK, updated. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-01 14:01 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-70954-4@http.gcc.gnu.org/bugzilla/> 2023-11-01 8:31 ` [Bug c/70954] -Wmisleading-indentation false positive on GNU "ed" muecker at gwdg dot de 2023-11-01 14:01 ` [Bug c/70954] -Wmisleading-indentation false positive on code from GNU "ed" (featuring a label) egallager at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).