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