https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64812
Timo Teräs <timo.teras at iki dot fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timo.teras at iki dot fi --- Comment #3 from Timo Teräs <timo.teras at iki dot fi> --- I can reproduce this, but unfortunately I don't have minimalistic test case yet. As a workaround removing -fvisibility-inlines-hidden from the build flags, makes things work in the libreoffice. What is involved / happening is: The non-virtual thunks are in a DSO, but marked hidden. This is caused by -fvisibility-inlines-hidden. The ::acquire members are virtual, but with inline implementation (no inline marking / attribute though). The class itself is marked __attribute__((visibility("default"))). It appears that the places getting these unresolved symbols are trying to call external symbol, even though it's inline implementation. Apparently optimization flags, code context affects when this happens. The symptoms sounds very much similar to what was in llvm: http://llvm.org/bugs/show_bug.cgi?id=12255