code coverage: llvm-ar: undefined reference to `llvm::raw_fd_ostream::current_pos() const'

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Jul 31 19:14:37 PDT 2013


>> Which host compiler are you using?
> gcc 4.8.1-2

I can reproduce the bug with gcc 4.8. It does look like a bug in gcc.
In the attached testcase it produces an undefined reference to
_ZNK4llvm14raw_fd_ostream11current_posEv, but that function is defined
inline.

It reproduces with "cc1plus llvm-ar.ii -quiet -std=c++11
-fprofile-arcs -o test.s -O2". It may or may not be a duplicate of
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53808.

Do you want to report a bug with them or should I?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-ar.ii
Type: application/octet-stream
Size: 7152 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130731/a40a7c5d/attachment.obj>


More information about the llvm-commits mailing list