https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105264
--- Comment #9 from Ævar Arnfjörð Bjarmason ---
Thanks a lot, I can confirm that this fixes the issue in builtin/merge-file.c
in git.git.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105285
--- Comment #2 from Ævar Arnfjörð Bjarmason ---
This code also errors under -Werror=analyzer-too-complex, including in some
adjacent code, so perhaps the analyzer gave up?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105285
--- Comment #1 from Ævar Arnfjörð Bjarmason ---
Created attachment 52814
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52814&action=edit
A patch to git.git that works around the -fanalyzer false positive
A fix to git.git to work around t
erity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: avarab at gmail dot com
Target Milestone: ---
Created attachment 52813
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52813&action=edit
gcc -E
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87404
--- Comment #10 from Ævar Arnfjörð Bjarmason ---
Thanks, just clarifying. I saw this one was in the C++ component unlike the
other one.
On Thu, Apr 14, 2022, 19:57 egallager at gcc dot gnu.org <
gcc-bugzi...@gcc.gnu.org> wrote:
> https://gcc.gn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105273
--- Comment #2 from Ævar Arnfjörð Bjarmason ---
...To finish the report (Bugzilla's eager submitting threw me for a loop) the
issue is that while the analyzer is right in the *general* case about a
"switch" with a missing "default" being somethi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105273
--- Comment #1 from Ævar Arnfjörð Bjarmason ---
Created attachment 52808
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52808&action=edit
test case without an enum
A slightly amended test case, showing that the enum isn't per-se the issue
oduct: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: avarab at gmail dot com
Target Milestone: ---
Created attachment 52807
--> https://gcc.gnu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105264
--- Comment #4 from Ævar Arnfjörð Bjarmason ---
Created attachment 52806
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52806&action=edit
testcase-full.c (gcc -E of testcase.c)
The gcc -E version of testcase.c, probably useless since it o
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105264
Ævar Arnfjörð Bjarmason changed:
What|Removed |Added
CC||avarab at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105264
--- Comment #2 from Ævar Arnfjörð Bjarmason ---
I think I can do one better. Here's a stand-alone reproducible test case
without any headers except standard headers, I've expanded the gcc -E version
of that too, but presumably you won't need it.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87404
--- Comment #8 from Ævar Arnfjörð Bjarmason ---
Eric: I filed bug 87983. I think it makes sense to mark it as a duplicate only
if this one covers both C and C++, right now the "component" for this one is
C++.
As bug 87983 notes in passing C does
rity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: avarab at gmail dot com
Target Milestone: ---
After reading
https://developers.redhat.com/articles/2022/04/12/state-static-analysis-gcc-12-compiler
I tried
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87983
--- Comment #4 from Ævar Arnfjörð Bjarmason ---
(In reply to Eric Gallager from comment #3)
> Is the expectation that this would come from -Wswitch, -Wswitch-enum,
> -Wenum-compare, -Wenum-conversion, or some new flag?
I think a new flag would b
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87983
--- Comment #1 from Ævar Arnfjörð Bjarmason ---
FYI: I filed a bug with clang for the same feature:
https://bugs.llvm.org/show_bug.cgi?id=39635
: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: avarab at gmail dot com
Target Milestone: ---
A bug was fixed in git that would have been spotted by the following program
warning:
```
#include
16 matches
Mail list logo