Re: -fanalyzer triggers on empty vector of strings and foreach loop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux