[LLVMbugs] [Bug 18386] New: Linker error complaining about undefined reference to std::__enabled_shared_from_this_helper
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jan 4 11:41:55 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18386
Bug ID: 18386
Summary: Linker error complaining about undefined reference to
std::__enabled_shared_from_this_helper
Product: clang
Version: 3.3
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: extproxy at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11822
--> http://llvm.org/bugs/attachment.cgi?id=11822&action=edit
Code file that clang has trouble compiling
Please see attached file clang_bug.cc. When I compile it with clang, I get a
linker error as given below. The file compiles fine with g++ 4.8.1.
clang++ -std=c++0x -g clang_bug.cc
/tmp/clang_bug-aZhS4N.o: In function
`__shared_ptr<std::allocator<SubClass::AnotherClass>, >':
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/shared_ptr_base.h:992:
undefined reference to `void std::__enable_shared_from_this_helper<Base,
SubClass::AnotherClass>(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&,
std::enable_shared_from_this<Base> const*, SubClass::AnotherClass const*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--
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/20140104/457aed81/attachment.html>
More information about the llvm-bugs
mailing list