<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - GCC 11: error: invalid 'static_cast' from type 'std::__cxx11::basic_ostringstream<char>' to type 'std::ostringstream&' {aka 'std::__cxx11::basic_ostringstream<char>&'}"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=142326">142326</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>GCC 11: error: invalid 'static_cast' from type 'std::__cxx11::basic_ostringstream<char>' to type 'std::ostringstream&' {aka 'std::__cxx11::basic_ostringstream<char>&'}
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Base
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mliska@suse.cz
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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 &
<span class="quote">>(::std::ostringstream() << stream).str())</span >
[ 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 &
<span class="quote">>(::std::ostringstream() << stream).str())</span >
[ 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 &
<span class="quote">>(::std::ostringstream() << stream).str())</span >
[ 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 &
<span class="quote">>(::std::ostringstream() << stream).str())</span >
[ 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]       |                   ^~~~~~~~~~</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>