Workaround gcc10 issues such as: ucbstorage.cxx:(.text+0x645b): undefined reference to `non-virtual thunk to cppu::WeakImplHelper::acquire()' --- a/sot/source/sdstor/ucbstorage.cxx 2020-11-16 21:30:57.533122410 +0200 +++ b/sot/source/sdstor/ucbstorage.cxx 2020-11-17 13:16:01.689775499 +0200 @@ -78,6 +78,8 @@ static int nOpenStreams=0; #endif +template class css::uno::Reference < css::io::XInputStream >; + typedef ::cppu::WeakImplHelper < XInputStream, XSeekable > FileInputStreamWrapper_Base; class FileStreamWrapper_Impl : public FileInputStreamWrapper_Base { --- a/svtools/source/misc/embedhlp.cxx 2020-11-17 09:31:23.953935644 +0200 +++ b/svtools/source/misc/embedhlp.cxx 2020-11-17 13:11:45.966880354 +0200 @@ -56,6 +56,8 @@ using namespace com::sun::star; +template class uno::Reference< io::XInputStream > ; + namespace svt { class EmbedEventListener_Impl : public ::cppu::WeakImplHelper < embed::XStateChangeListener, --- a/svtools/source/misc/imageresourceaccess.cxx 2020-11-17 09:28:32.160139860 +0200 +++ b/svtools/source/misc/imageresourceaccess.cxx 2020-11-17 13:14:32.791086629 +0200 @@ -30,6 +30,8 @@ #include #include +template class com::sun::star::uno::Reference; + namespace svt { namespace GraphicAccess --- a/filter/source/xsltdialog/xmlfilterjar.cxx 2020-11-17 13:22:40.980553262 +0200 +++ b/filter/source/xsltdialog/xmlfilterjar.cxx 2020-11-17 13:23:14.443393048 +0200 @@ -60,6 +60,8 @@ using ::rtl::Uri; +template class uno::Reference< io::XInputStream > ; + XMLFilterJarHelper::XMLFilterJarHelper( const Reference< XComponentContext >& rxContext ) : mxContext( rxContext ), sVndSunStarPackage( "vnd.sun.star.Package:" ), --- a/starmath/source/mathmlimport.cxx 2020-11-17 13:25:51.754523993 +0200 +++ b/starmath/source/mathmlimport.cxx 2020-11-17 13:26:20.794148223 +0200 @@ -80,6 +80,8 @@ using namespace ::com::sun::star; using namespace ::xmloff::token; +template class uno::Reference< io::XInputStream > ; + namespace { std::unique_ptr popOrZero(SmNodeStack& rStack) --- a/filter/source/msfilter/msdffimp.cxx 2020-11-17 13:24:36.752179106 +0200 +++ b/filter/source/msfilter/msdffimp.cxx 2020-11-17 13:24:53.035283815 +0200 @@ -187,6 +187,8 @@ using namespace drawing ; using namespace container ; +template class uno::Reference< io::XInputStream > ; + // static counter for OLE-Objects static sal_uInt32 nMSOleObjCntr = 0; #define MSO_OLE_Obj "MSO_OLE_Obj" --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx 2020-11-17 13:28:01.622843541 +0200 +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx 2020-11-17 13:28:15.432664842 +0200 @@ -54,6 +54,8 @@ using namespace com::sun::star; +template class uno::Reference< io::XInputStream > ; + namespace { /// Returns an util::DateTime from a 'YYYY. MM. DD.' string. --- a/sd/source/filter/xml/sdxmlwrp.cxx 2020-11-17 13:30:37.404161089 +0200 +++ b/sd/source/filter/xml/sdxmlwrp.cxx 2020-11-17 13:30:48.510684039 +0200 @@ -83,6 +83,8 @@ using namespace com::sun::star::document; using namespace comphelper; +template class uno::Reference< io::XInputStream > ; + #define SD_XML_READERROR ErrCode(1234) char const sXML_export_impress_meta_oasis_service[] = "com.sun.star.comp.Impress.XMLOasisMetaExporter"; --- a/sw/source/filter/xml/xmlimp.cxx 2020-11-17 13:32:17.742862736 +0200 +++ b/sw/source/filter/xml/xmlimp.cxx 2020-11-17 13:32:31.046023929 +0200 @@ -104,6 +104,8 @@ using namespace ::xmloff::token; using namespace ::std; +template class uno::Reference< io::XInputStream > ; + enum SwXMLDocTokens { XML_TOK_DOC_FONTDECLS, --- a/sc/source/filter/xml/xmlimprt.cxx 2020-11-17 13:34:17.874626656 +0200 +++ b/sc/source/filter/xml/xmlimprt.cxx 2020-11-17 13:34:35.357705884 +0200 @@ -109,6 +109,8 @@ using namespace ::xmloff::token; using namespace ::formula; +template class uno::Reference< io::XInputStream > ; + OUString ScXMLImport_getImplementationName() throw() { return "com.sun.star.comp.Calc.XMLOasisImporter"; --- a/editeng/source/xml/xmltxtimp.cxx 2020-11-16 22:37:57.296272816 +0200 +++ b/editeng/source/xml/xmltxtimp.cxx 2020-11-16 22:38:19.535978492 +0200 @@ -55,6 +55,7 @@ using namespace cppu; using namespace xmloff::token; +template class ::cppu::WeakImplHelper< css::io::XInputStream >; class SvxXMLTextImportContext : public SvXMLImportContext {