<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed" title="RESOLVED WONTFIX - Clang ignores nonnull attributes on declarations following definitions when compiling as C++; behavior differs from gcc and EDG" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24134&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=nRUz9AGTbjQyRLuYlgvM26SamLjZipskCqbsb8zoPAU&s=jNEzHqrOSp3E1P6z5dzks9L4f4T6YL3McXxfxhTbktE&e=">bug 24134</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>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>richard-llvm@metafoo.co.uk
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WONTFIX
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed" title="RESOLVED WONTFIX - Clang ignores nonnull attributes on declarations following definitions when compiling as C++; behavior differs from gcc and EDG" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24134-23c1&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=nRUz9AGTbjQyRLuYlgvM26SamLjZipskCqbsb8zoPAU&s=SD9ZL3dIKGLFPztw9X_0VOYg2SUTA6PLszMNHzHuNLI&e=">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed" title="RESOLVED WONTFIX - Clang ignores nonnull attributes on declarations following definitions when compiling as C++; behavior differs from gcc and EDG" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24134&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=nRUz9AGTbjQyRLuYlgvM26SamLjZipskCqbsb8zoPAU&s=jNEzHqrOSp3E1P6z5dzks9L4f4T6YL3McXxfxhTbktE&e=">bug 24134</a>
from <span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span></b>
<pre>(From mailing list discussion:)
We don't support adding attributes after a definition. (In the case where the
attributes affect the generated code for the definition, that way lies madness,
and we don't distinguish between those attributes and others for consistency --
note that nonnull *does* affect code generation in some cases.) The difference
between C and C++ here is most likely exactly what you suspect (the first
declaration is only a tentative definition in C).</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>