File gcc11-fix-error.patch of Package libreoffice

diff --git a/include/sal/log.hxx b/include/sal/log.hxx
index 6bb0d1b..5691888 100644
--- a/include/sal/log.hxx
+++ b/include/sal/log.hxx
@@ -191,7 +191,7 @@ inline char const * unwrapStream(SAL_UNUSED_PARAMETER StreamIgnore const &) {
     (::std::ostringstream() << stream).str()
 #else
 #define SAL_STREAM(stream) \
-    (dynamic_cast< ::std::ostringstream & >(::std::ostringstream() << stream).str())
+    (dynamic_cast< ::std::ostringstream && >(::std::ostringstream() << stream).str())
 #endif
 
 /**
openSUSE Build Service is sponsored by