[Bug analyzer/99269] False positive -Wanalyzer-malloc-leak/-Wanalyzer-double-free with -fanalyzer

2021-11-30 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99269

David Malcolm  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #4 from David Malcolm  ---
Fixed in GCC 11; test coverage added by above commit to GCC 12 onwards.

[Bug analyzer/99269] False positive -Wanalyzer-malloc-leak/-Wanalyzer-double-free with -fanalyzer

2021-11-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99269

--- Comment #3 from CVS Commits  ---
The master branch has been updated by David Malcolm :

https://gcc.gnu.org/g:9603bccba62e250d0ff64863a1730a167d571a25

commit r12-5641-g9603bccba62e250d0ff64863a1730a167d571a25
Author: David Malcolm 
Date:   Tue Nov 30 14:47:24 2021 -0500

analyzer: add regression test [PR99269]

gcc/testsuite/ChangeLog:
PR analyzer/99269
* gcc.dg/analyzer/pr99269.c: New test.

Signed-off-by: David Malcolm 

[Bug analyzer/99269] False positive -Wanalyzer-malloc-leak/-Wanalyzer-double-free with -fanalyzer

2021-11-30 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99269

David Malcolm  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2021-11-30
 Ever confirmed|0   |1

--- Comment #2 from David Malcolm  ---
Thanks for filing this bug.

I'm able to reproduce it with gcc 10.3:
  https://godbolt.org/z/xajnz8abn
but it seems to be fixed in gcc 11 onwards (I heavily rewrote the internals of
the analyzer in gcc 11).

I'll add this as a regression test to the testsuite and then close this out;
thanks again.

[Bug analyzer/99269] False positive -Wanalyzer-malloc-leak/-Wanalyzer-double-free with -fanalyzer

2021-11-12 Thread npfhrotynz-ptnqh.myvf at noclue dot notk.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99269

Dominique Martinet  changed:

   What|Removed |Added

 CC||npfhrotynz-ptnqh.myvf@noclu
   ||e.notk.org

--- Comment #1 from Dominique Martinet  ---
gcc 11.2.1 20210728 (fc34) does not produce any warning with this, so would be
tempted to say it's been fixed.