[LLVMbugs] [Bug 19926] false positive C++ ctor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 2 15:00:39 PDT 2014


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID
            Summary|false positive C++ dtor     |false positive C++ ctor

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
The static analyzer is correct; your code has a double delete (and infinite

10 The destructor is entered with the static global non-null
20 We reach the 'delete' expression
30 The global is non-null, so we call its destructor
40 Goto 10

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140602/f65ae683/attachment.html>

More information about the llvm-bugs mailing list