[llvm-bugs] [Bug 10516] alloc_size attribute is unknown
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 21 13:48:00 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=10516
Nick Lewycky <nlewycky at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |nlewycky at google.com
Resolution|FIXED |---
--- Comment #4 from Nick Lewycky <nlewycky at google.com> ---
Er, I tested this with r247821 and it doesn't work for me.
$ cat as.c
char *allocate(int) __attribute__((__malloc__, __alloc_size__(1)));
$ clang as.c -fsyntax-only
as.c:1:48: warning: unknown attribute '__alloc_size__' ignored
[-Wunknown-attributes]
char *allocate(int) __attribute__((__malloc__, __alloc_size__(1)));
^
1 warning generated.
I don't see the string "alloc_size" anywhere inside clang's codebase?
--
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/20150921/48da9fe6/attachment.html>
More information about the llvm-bugs
mailing list