public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61112] Simple example triggers false-positive -Wmaybe-uninitialized warning
Date: Tue, 30 Mar 2021 16:42:16 +0000	[thread overview]
Message-ID: <bug-61112-4-tni3AVnjYT@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-61112-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61112

--- Comment #9 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #8)
> I've added both the passing test case from comment #0 and the still failing
> test case from comment #5 to the test suite and xfailed the latter (thus
> reconfirming for GCC 11).  Without any further analysis, the comment #5 test
> case also looks similar to pr99756.

I think the '||' is a red-herring or insufficient to explain the PR. The
following also warns:

int p;
void foo (int x, int y, int z, int a)
{
  int w;
  if (x)
    w = z;
  if (y)
    w = 10;
  if (a)
    w = 67;
  if (x)
    p = w;
}

  parent reply	other threads:[~2021-03-30 16:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-08 14:07 [Bug middle-end/61112] New: " patrick at parcs dot ath.cx
2014-05-08 14:08 ` [Bug middle-end/61112] " patrick at parcs dot ath.cx
2014-05-08 16:27 ` patrick at parcs dot ath.cx
2021-03-29 19:54 ` cvs-commit at gcc dot gnu.org
2021-03-29 20:03 ` msebor at gcc dot gnu.org
2021-03-30 16:42 ` manu at gcc dot gnu.org [this message]
2021-11-30 14:44 ` aldyh 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-61112-4-tni3AVnjYT@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: link
Be 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).