public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "muecker at gwdg dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/70954] -Wmisleading-indentation false positive on GNU "ed" Date: Wed, 01 Nov 2023 08:31:22 +0000 [thread overview] Message-ID: <bug-70954-4-NXaAMInbr6@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-70954-4@http.gcc.gnu.org/bugzilla/> 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
next parent reply other threads:[~2023-11-01 8:31 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-70954-4@http.gcc.gnu.org/bugzilla/> 2023-11-01 8:31 ` muecker at gwdg dot de [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-70954-4-NXaAMInbr6@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).