[llvm-bugs] [Bug 31659] New: Unexpected DW_AT_external attribute on lambda operator
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jan 16 11:11:55 PST 2017
https://llvm.org/bugs/show_bug.cgi?id=31659
Bug ID: 31659
Summary: Unexpected DW_AT_external attribute on lambda operator
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: dcallahan at fb.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 17846
--> https://llvm.org/bugs/attachment.cgi?id=17846&action=edit
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 bug1.o | c++filt
0000000000000020 t $_0::operator()() const
llvm-dwarfdump bug1.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/Bug1/bug1.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)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170116/209b4ba0/attachment.html>
More information about the llvm-bugs
mailing list