https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70112

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Hi.

I've just tried to build libreoffice:

commit abadeb7a4a76e8ea6ec449f3ea564abf8d52a231
Author: Maxim Monastirsky <momonas...@gmail.com>
Date:   Sun Feb 28 16:30:58 2016 +0200

    Unused defines

    Change-Id: Idc31e498a7223e7827533b24ab26928e21660ff2

with latest GCC:
gcc --version
gcc (GCC) 6.0.0 20160308 (experimental)

Works fine for both -O2 and -O2 and -flto. Unfortunately, due to:

/home/marxin/Programming/libreoffice/sax/source/tools/converter.cxx: In
function ‘void sax::lcl_AppendTimezone(rtl::OUStringBuffer&, sal_Int16)’:
/home/marxin/Programming/libreoffice/sax/source/tools/converter.cxx:1271:47:
error: invalid operands of types ‘__gnu_cxx::__enable_if<true, double>::__type
{aka double}’ and ‘int’ to binary ‘operator%’
         const sal_Int32 nMinutes(abs(nOffset) % 60);
                                  ~~~~~~~~~~~~~^~~~
/home/marxin/Programming/libreoffice/sax/source/tools/converter.cxx: In
function ‘void sax::lcl_ConvertToUTC(sal_Int16&, sal_uInt16&, sal_uInt16&,
sal_uInt16&, sal_uInt16&, sal_Int16)’:
/home/marxin/Programming/libreoffice/sax/source/tools/converter.cxx:1442:55:
error: invalid operands of types ‘__gnu_cxx::__enable_if<true, double>::__type
{aka double}’ and ‘int’ to binary ‘operator%’
     sal_Int16 const nOffsetMinutes(abs(nSourceOffset) % 60);

I was unable to build 'libreoffice-5-0-5' branch. Execution of both binaries is
w/o any problem.

Martin

Reply via email to