public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: andre maute <andre.maute@gmx.de>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: -fanalyzer triggers on empty vector of strings and foreach loop
Date: Wed, 6 May 2020 17:43:52 +0100	[thread overview]
Message-ID: <CAH6eHdRY-P9d26ubQHz1WR5YcR=OTZacijOkz1hj8UZigT3FSg@mail.gmail.com> (raw)
In-Reply-To: <81bd3c81-6afb-eb82-9ad8-e8b58a48f53c@gmx.de>

On Sat, 2 May 2020 at 18:21, andre maute wrote:
>
> On 5/2/20 1:24 PM, Jonathan Wakely wrote:
> > On Fri, 1 May 2020 at 23:59, andre maute wrote:
> >>
> >> I wonder if this is expected behavior
> >
> > It's a known limitation that the analyzer doesn't support C++ yet.
> >
>
> So nevertheless should these two be filed as bugs?

No thank you.

> The first being the iteration over the empty vector.

The analyzer dev says "it's not worth trying -fanalyzer with C++ at
this point.  Hopefully GCC 11."

> The second the one for the warning flag given by the output of -fanalyzer
> but which doesn't trigger anything if used alone.

That's expected, -Wanalyzer-null-dereference requires -fanalyzer to do anything.





> Regards
> Andre

      reply	other threads:[~2020-05-06 16:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-01 21:57 andre maute
2020-05-02 11:24 ` Jonathan Wakely
2020-05-02 17:18   ` andre maute
2020-05-06 16:43     ` Jonathan Wakely [this message]

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='CAH6eHdRY-P9d26ubQHz1WR5YcR=OTZacijOkz1hj8UZigT3FSg@mail.gmail.com' \
    --to=jwakely.gcc@gmail.com \
    --cc=andre.maute@gmx.de \
    --cc=gcc-help@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).