<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:nlewycky@google.com" title="Nick Lewycky <nlewycky@google.com>"> <span class="fn">Nick Lewycky</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - alloc_size attribute is unknown"
href="https://llvm.org/bugs/show_bug.cgi?id=10516">bug 10516</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>nlewycky@google.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>FIXED
</td>
<td>---
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - alloc_size attribute is unknown"
href="https://llvm.org/bugs/show_bug.cgi?id=10516#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - alloc_size attribute is unknown"
href="https://llvm.org/bugs/show_bug.cgi?id=10516">bug 10516</a>
from <span class="vcard"><a class="email" href="mailto:nlewycky@google.com" title="Nick Lewycky <nlewycky@google.com>"> <span class="fn">Nick Lewycky</span></a>
</span></b>
<pre>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?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>