[LLVMbugs] [Bug 11250] New: no code emitted for virtual inline function inherited indirectly from class template
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Oct 28 03:19:11 PDT 2011
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: unassignedclangbugs at nondot.org
ReportedBy: stephan.bergmann.secondary at googlemail.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list