<html>
<head>
<base href="http://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_RESOLVED bz_closed"
title="RESOLVED FIXED - [c99] no error on inline function with static variable"
href="http://llvm.org/bugs/show_bug.cgi?id=10231">bug 10231</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;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [c99] no error on inline function with static variable"
href="http://llvm.org/bugs/show_bug.cgi?id=10231#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [c99] no error on inline function with static variable"
href="http://llvm.org/bugs/show_bug.cgi?id=10231">bug 10231</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>$ clang pr10231.c -fsyntax-only
pr10231.c:2:3: warning: non-constant static local variable in inline function
may be different in different files [-Wstatic-local-in-inline]
static int x;
^
pr10231.c:1:1: note: use 'static' to give inline function 'foo' internal
linkage
inline int* foo() {
^
static
1 warning generated.</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>