[Libreoffice-bugs] [Bug 142326] New: GCC 11: error: invalid 'static_cast' from type 'std::__cxx11::basic_ostringstream<char>' to type 'std::ostringstream&' {aka 'std::__cxx11::basic_ostringstream<char>&'}
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon May 17 09:44:57 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=142326
Bug ID: 142326
Summary: GCC 11: error: invalid 'static_cast' from type
'std::__cxx11::basic_ostringstream<char>' to type
'std::ostringstream&' {aka
'std::__cxx11::basic_ostringstream<char>&'}
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Base
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: mliska at suse.cz
I noticed the following error when using the latest GCC release 11.1:
[ 4283s] In file included from
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/sfx2/source/control/bindings.cxx:24:
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/sfx2/source/control/bindings.cxx:
In member function 'sal_uInt16 SfxBindings::EnterRegistrations(const char*,
int)':
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/include/sal/log.hxx:194:6:
error: invalid 'static_cast' from type
'std::__cxx11::basic_ostringstream<char>' to type 'std::ostringstream&' {aka
'std::__cxx11::basic_ostringstream<char>&'}
[ 4283s] 194 | (dynamic_cast< ::std::ostringstream &
>(::std::ostringstream() << stream).str())
[ 4283s] |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/include/sal/log.hxx:129:45:
note: in definition of macro 'SAL_DETAIL_LOG_STREAM_PRIVATE_'
[ 4283s] 129 | ::sal::detail::StreamStart() << stream) == 1) \
[ 4283s] | ^~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/include/sal/log.hxx:335:5:
note: in expansion of macro 'SAL_DETAIL_LOG_STREAM'
[ 4283s] 335 | SAL_DETAIL_LOG_STREAM( \
[ 4283s] | ^~~~~~~~~~~~~~~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/sfx2/source/control/bindings.cxx:1314:5:
note: in expansion of macro 'SAL_INFO'
[ 4283s] 1314 | SAL_INFO(
[ 4283s] | ^~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/sfx2/source/control/bindings.cxx:1319:19:
note: in expansion of macro 'SAL_STREAM'
[ 4283s] 1319 | ? SAL_STREAM("File: " << pFile << " Line: " <<
nLine) : ""));
[ 4283s] | ^~~~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/include/sal/log.hxx:194:6:
error: invalid 'static_cast' from type
'std::__cxx11::basic_ostringstream<char>' to type 'std::ostringstream&' {aka
'std::__cxx11::basic_ostringstream<char>&'}
[ 4283s] 194 | (dynamic_cast< ::std::ostringstream &
>(::std::ostringstream() << stream).str())
[ 4283s] |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/include/sal/log.hxx:134:49:
note: in definition of macro 'SAL_DETAIL_LOG_STREAM_PRIVATE_'
[ 4283s] 134 | ::sal::detail::StreamStart() << stream), \
[ 4283s] | ^~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/include/sal/log.hxx:335:5:
note: in expansion of macro 'SAL_DETAIL_LOG_STREAM'
[ 4283s] 335 | SAL_DETAIL_LOG_STREAM( \
[ 4283s] | ^~~~~~~~~~~~~~~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/sfx2/source/control/bindings.cxx:1314:5:
note: in expansion of macro 'SAL_INFO'
[ 4283s] 1314 | SAL_INFO(
[ 4283s] | ^~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/sfx2/source/control/bindings.cxx:1319:19:
note: in expansion of macro 'SAL_STREAM'
[ 4283s] 1319 | ? SAL_STREAM("File: " << pFile << " Line: " <<
nLine) : ""));
[ 4283s] | ^~~~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/include/sal/log.hxx:194:6:
error: invalid 'static_cast' from type
'std::__cxx11::basic_ostringstream<char>' to type 'std::ostringstream&' {aka
'std::__cxx11::basic_ostringstream<char>&'}
[ 4283s] 194 | (dynamic_cast< ::std::ostringstream &
>(::std::ostringstream() << stream).str())
[ 4283s] |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/include/sal/log.hxx:138:30:
note: in definition of macro 'SAL_DETAIL_LOG_STREAM_PRIVATE_'
[ 4283s] 138 | sal_detail_stream << stream; \
[ 4283s] | ^~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/include/sal/log.hxx:335:5:
note: in expansion of macro 'SAL_DETAIL_LOG_STREAM'
[ 4283s] 335 | SAL_DETAIL_LOG_STREAM( \
[ 4283s] | ^~~~~~~~~~~~~~~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/sfx2/source/control/bindings.cxx:1314:5:
note: in expansion of macro 'SAL_INFO'
[ 4283s] 1314 | SAL_INFO(
[ 4283s] | ^~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/sfx2/source/control/bindings.cxx:1319:19:
note: in expansion of macro 'SAL_STREAM'
[ 4283s] 1319 | ? SAL_STREAM("File: " << pFile << " Line: " <<
nLine) : ""));
[ 4283s] | ^~~~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/include/sal/log.hxx:194:6:
error: invalid 'static_cast' from type
'std::__cxx11::basic_ostringstream<char>' to type 'std::ostringstream&' {aka
'std::__cxx11::basic_ostringstream<char>&'}
[ 4283s] 194 | (dynamic_cast< ::std::ostringstream &
>(::std::ostringstream() << stream).str())
[ 4283s] |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/include/sal/log.hxx:129:45:
note: in definition of macro 'SAL_DETAIL_LOG_STREAM_PRIVATE_'
[ 4283s] 129 | ::sal::detail::StreamStart() << stream) == 1) \
[ 4283s] | ^~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/include/sal/log.hxx:335:5:
note: in expansion of macro 'SAL_DETAIL_LOG_STREAM'
[ 4283s] 335 | SAL_DETAIL_LOG_STREAM( \
[ 4283s] | ^~~~~~~~~~~~~~~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/sfx2/source/control/bindings.cxx:1314:5:
note: in expansion of macro 'SAL_INFO'
[ 4283s] 1314 | SAL_INFO(
[ 4283s] | ^~~~~~~~
[ 4283s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/sfx2/source/control/bindings.cxx:1319:19:
note: in expansion of macro 'SAL_STREAM'
[ 4283s] 1319 | ? SAL_STREAM("File: " << pFile << " Line: " <<
nLine) : ""));
[ 4283s] | ^~~~~~~~~~
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210517/4dba3584/attachment.htm>
More information about the Libreoffice-bugs
mailing list