<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 - Issues with C99 VLA implementation"
href="https://bugs.llvm.org/show_bug.cgi?id=36323">36323</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Issues with C99 VLA implementation
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>paul_robinson@playstation.sony.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I've spun this off from <a class="bz_bug_link
bz_status_NEW "
title="NEW - Simpler DWARF for C99 VLAs"
href="show_bug.cgi?id=36322">bug 36322</a> to track additional issues with
the current implementation of DWARF descriptions of C99 VLAs.
Initially I was curious what happened if a function with a VLA was
inlined into another function. Adrian Prantl pointed out the test
llvm/test/DebugInfo/X86/vla-dependencies.ll
which I started playing with.
Even without optimization, some curious things happen.
The subrange_type has a DW_AT_type which points to something called
"sizetype" which does not exist in the source. It also doesn't share
an abbrev with the other base types, because its attributes are in a
different order; this suggests some poor internal coding practice at least,
although it's not actually invalid DWARF.
With optimization, LLVM asserts, which is worth its own bug.</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>