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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs