[llvm-bugs] [Bug 5098] [C++] Diagnose new/new[]/delete/delete[] mismatches

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 7 06:03:48 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=5098

Carlos Antonio Neira Bustos <cneirabustos at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |cneirabustos at gmail.com
         Resolution|---                         |FIXED

--- Comment #2 from Carlos Antonio Neira Bustos <cneirabustos at gmail.com> ---
on clang++ 3.8 this is already covered

 clang++ --analyze 5098.cpp
5098.cpp:12:4: warning: Memory allocated by 'new[]' should be deallocated by
'delete[]', not 'delete'
   delete x;

-- 
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/20160907/d32d9516/attachment.html>


More information about the llvm-bugs mailing list