http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59469

--- Comment #26 from Rafael Avila de Espindola <rafael.espindola at gmail dot 
com> ---
> Yes, is see the weak symbol both in BasicBlock.o and Function.o.
> However it gets optimized away when I link them with "-flto -O3" into
> libLLVMCore.so (see comment 0).

That optimization seems invalid. There is a explicit template instantiation
definition, so it is valid for other dsos to have an undefined reference.

> Honza says it is an error to have the symbol undefined in
> libLLVMAsmParser.so.
> (The undefined symbol comes from LLParser.cpp)

Reply via email to