<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - Clang does not emit DW_TAG_unspecified_parameters for varargs function"
href="http://llvm.org/bugs/show_bug.cgi?id=18950">18950</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang does not emit DW_TAG_unspecified_parameters for varargs function
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>emaste@freebsd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>LLDB is unable to call a varargs function, as debug data does not include
DW_TAG_unspecified_parameters.
(lldb) expression (int)printf("value is %d.\\n", value);
error: no matching function for call to 'printf'
note: candidate function not viable: requires 1 argument, but 2 were provided
error: 1 errors parsing expression
Apple bug: 13690847
LLDB bug: 17183 <<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - expressions fail when calling varargs functions on FreeBSD 9.2 (built with GCC 4.2.1)"
href="show_bug.cgi?id=17183">http://llvm.org/bugs/show_bug.cgi?id=17183</a>>
<span class="quote">> This is a clang bug. It should be emitting a
> DW_TAG_unspecified_parameters tag after the
> DW_TAG_formal_parameter children in a
> DW_TAG_subprogram, DW_TAG_inlined_subroutine,
> or DW_TAG_subroutine_type.</span ></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>