<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [CodeView] Range-based for loop variables are not available when debugging"
href="https://bugs.llvm.org/show_bug.cgi?id=35524">35524</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[CodeView] Range-based for loop variables are not available when debugging
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>DebugInfo
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zturner@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>amccarth@google.com, dxf@google.com, hans@chromium.org, llvm-bugs@lists.llvm.org, llvm@inglorion.net, rnk@google.com
</td>
</tr></table>
<p>
<div>
<pre>I encountered in yaml2coff.cpp. In the function layoutCOFF, there is a loop
that begins like this.
// Assign each section data address consecutively.
for (COFFYAML::Section &S : CP.Obj.Sections) {
If you put a breakpoint in this loop and hover over S, or add a watch for it,
it displays as "Variable is optimized away and not available."
This is at O0, so we really need this.
I haven't tried to make a minimal repro yet, but hopefully it's straightforward
to do. This should be easy enough for anyone to repro though.</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>