https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80469
--- Comment #5 from Ubikovich <theubik at mail dot ru> --- (In reply to Markus Trippelsdorf from comment #4) > (In reply to Ubikovich from comment #3) > > >> You need to provide the definition of dothis() somewhere. > > > > There is the definition: > > > > // subimpl.cpp > > #include "subimpl.h" > > void A::dothis() {} > > Yeah, put "__attribute__ ((visibility("default")))" above it and you're done. Why if move implement of A::a() to subimpl.cpp it not reproduced?