<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:jdevlieghere@apple.com" title="Jonas Devlieghere <jdevlieghere@apple.com>"> <span class="fn">Jonas Devlieghere</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - False error err_ref_non_value when variable id spelling matches struct tag spelling"
href="https://bugs.llvm.org/show_bug.cgi?id=17494">bug 17494</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;">CC</td>
<td>
</td>
<td>jdevlieghere@apple.com
</td>
</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 - False error err_ref_non_value when variable id spelling matches struct tag spelling"
href="https://bugs.llvm.org/show_bug.cgi?id=17494#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - False error err_ref_non_value when variable id spelling matches struct tag spelling"
href="https://bugs.llvm.org/show_bug.cgi?id=17494">bug 17494</a>
from <span class="vcard"><a class="email" href="mailto:jdevlieghere@apple.com" title="Jonas Devlieghere <jdevlieghere@apple.com>"> <span class="fn">Jonas Devlieghere</span></a>
</span></b>
<pre>(lldb) target create "/tmp/test.o"
b f
Current executable set to '/tmp/test.o' (x86_64).
(lldb) b f
Breakpoint 1: where = test.o`f + 8 at test.c:9:29, address = 0x0000000100000f48
(lldb) r
Process 34843 launched: '/tmp/test.o' (x86_64)
Process 34843 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x0000000100000f48 test.o`f(a=0x00007ffeefbff658) at test.c:9:29
6
7 void dump_a(struct a *a) { printf("a::m: %d\n", a->m); }
8
-> 9 int f(struct a *a) { return a->m; }
10
11 int main() {
12 struct a x = {42};
(lldb) p dump_a(a)
a::m: 42</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>