[LLVMbugs] [Bug 12834] New: libc++ functions as first class fails (namely std::string)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue May 15 12:17:30 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12834
Bug #: 12834
Summary: libc++ functions as first class fails (namely
std::string)
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jonathan at emptycrate.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This example:
#include <string>
int main()
{
void (std::string::*f)() = &std::string::clear;
}
Fails to link in ToT Clang and libcxx (as of 5/14/2012). Other function
pointers I tried seem to work fine, including function pointers of class
methods, but reaching into std::string to get refer to its methods causes the
problem.
--
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