[llvm-dev] Linker failures in debug build - compiler/linker poll?

Rafael Espíndola via llvm-dev
Mon, 20 Jun 2016 12:55:42 -0000

> In any case, I noticed this morning that somebody else fixed it in the
other
> way that I had in mind, which is including LoopPassManager.h in
> LoopPass.cpp.

Including LoopPassManager.h in LoopPass.cpp fixes the problem for you?
I think that is the correct fix. I am not sure if c++ requires that an
extern template be visible in all translation units if it is visible
in one, but -fvisibility-inline-hidden is know to not be fully
standards compliant.

Cheers,
Rafael