[LLVMbugs] [Bug 24263] New: -Wfree-nonheap-object not implemented

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 24 23:42:13 PDT 2015


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

            Bug ID: 24263
           Summary: -Wfree-nonheap-object not implemented
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: chengniansun at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$: cat t.c
#include <stdlib.h>
int main() {
  char a[100];
  free(a);
  return 0;
}
$: gcc-trunk -c t.c
t.c: In function ‘main’:
t.c:4:3: warning: attempt to free a non-heap object ‘a’ [-Wfree-nonheap-object]
   free(a);
   ^
$: clang-trunk -Weverything -c t.c
$: 
$:

-- 
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/20150725/cd3092ac/attachment.html>


More information about the llvm-bugs mailing list