[LLVMbugs] [Bug 12123] New: clang incorrectly computes mangling/linkage for lambda inside typeid
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Feb 28 16:45:29 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12123
Bug #: 12123
Summary: clang incorrectly computes mangling/linkage for lambda
inside typeid
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Testcase:
#include <typeinfo>
struct A { virtual ~A(); } g;
struct B {
void f(const std::type_info& x = typeid([]()->A& { return g; }()));
void h();
};
void B::h() { f(); }
We currently mangle the lambda as "_ZNK1B3$_0clEv"; it should mangle as
"_ZZN1B1fERK1AEd_NKUlvE_clEv".
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list