http://llvm.org/bugs/show_bug.cgi?id=11250
Summary: no code emitted for virtual inline function inherited
indirectly from class template
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=7544)
--> (http://llvm.org/bugs/attachment.cgi?id=7544)
test case
The attached run.sh fails for me (on Fedora 15 x86_64) with Clang built from
today's trunk with the following output:
++ cat
++ cat
++ clang++ --version
clang version 3.1 (trunk 143187)
Target: x86_64-unknown-linux-gnu
Thread model: posix
++ clang++ -shared -fPIC -fvisibility=hidden lib1.cc -o lib1.so
++ clang++ -shared -fPIC lib2.cc -L. -l1 -Wl,-z,defs -o lib2.so
/tmp/lib2-I0DZ8n.o:(.data.rel.ro+0x20): undefined reference to `S1<int>::f()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
GCC on the other hand works fine, emitting f() weakly in lib2.o.
--
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