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

            Bug ID: 127890
           Summary: Analyzer regression: 'leak' false positive regression
                    in 17.0.0 (trunk)
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gdr at gcc dot gnu.org
  Target Milestone: ---

Created attachment 65838
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65838&action=edit
Repro illustrating the regression

G++ trunk (17.0.0) analyzer reports a false positive leak on the attached repro
using the command line:

> g++ -c -fanalyzer 2.cxx

This is a regression from GCC-14.
I note that the false positive disappear at higher optimization level.

Reply via email to