<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - [CodeView] Range-based for loop variables are not available when debugging"
href="https://bugs.llvm.org/show_bug.cgi?id=35524">bug 35524</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;">Resolution</td>
<td>---
</td>
<td>DUPLICATE
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - [CodeView] Range-based for loop variables are not available when debugging"
href="https://bugs.llvm.org/show_bug.cgi?id=35524#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - [CodeView] Range-based for loop variables are not available when debugging"
href="https://bugs.llvm.org/show_bug.cgi?id=35524">bug 35524</a>
from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
<pre>I think the trouble is that there are really two range-based for loops and two
variables named 'S'. Here's what I see in windbg:
0:000> dv
CP = 0x00000078`c738f458
CurrentSectionDataOffset = 0xb7c
__range = 0x00000267`4e329020 { size=73 }
__begin = {...}
__end = {...}
S = 0x00000267`4e35b380 # Valid S
__range = <value unavailable>
__begin = <value unavailable>
__end = <value unavailable>
S = <value unavailable> # Probably for the next loop
SymbolTableStart = 0x7ff7
NumberOfSymbols = 0x88e3e8ce
i = <value unavailable>
e = <value unavailable>
NumberOfAuxSymbols = <value unavailable>
I'd dupe this against "we should implement S_BLOCK32 scopes".
*** This bug has been marked as a duplicate of <a class="bz_bug_link
bz_status_NEW "
title="NEW - [codeview] Emit variable scope information in -O0 builds"
href="show_bug.cgi?id=28458">bug 28458</a> ***</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>