<html>
<head>
<base href="https://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 --- - Unexpected DW_AT_external attribute on lambda operator"
href="https://llvm.org/bugs/show_bug.cgi?id=31659">31659</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unexpected DW_AT_external attribute on lambda operator
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>dcallahan@fb.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=17846" name="attach_17846" title="example source">attachment 17846</a> <a href="attachment.cgi?id=17846&action=edit" title="example source">[details]</a></span>
example source
The generated call operator for a lambda expression is marked with
DW_AT_external in the declaration although the function is correctly marked
as local in the object file symbol table.
nm <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Need to add product version numbers"
href="show_bug.cgi?id=1">bug1</a>.o | c++filt
0000000000000020 t $_0::operator()() const
llvm-dwarfdump <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Need to add product version numbers"
href="show_bug.cgi?id=1">bug1</a>.o
...
0x0000007d: DW_TAG_subprogram [10] *
DW_AT_linkage_name [DW_FORM_strp] (
.debug_str[0x000000f8] = "_ZNK3$_0clEv")
DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000105] =
"operator()")
DW_AT_decl_file [DW_FORM_data1]
("/home/dcallahan/tasks/LinkCheck/<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Need to add product version numbers"
href="show_bug.cgi?id=1">Bug1</a>/<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Need to add product version numbers"
href="show_bug.cgi?id=1">bug1</a>.cc"\
)
DW_AT_decl_line [DW_FORM_data1] (8)
DW_AT_declaration [DW_FORM_flag_present] (true)
DW_AT_external [DW_FORM_flag_present] (true)
DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_public)</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>