Bug 127408 - compiler failure: no viable constructor …
Summary: compiler failure: no viable constructor …
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.3.1.2 release
Hardware: x86-64 (AMD64) FreeBSD
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-06 12:56 UTC by vvd
Modified: 2019-09-12 08:27 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Remove std::function (1.23 KB, patch)
2019-09-06 12:56 UTC, vvd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vvd 2019-09-06 12:56:02 UTC
Created attachment 153987 [details]
Remove std::function

Part of build log:

[CXX] vcl/qt5/Qt5Object.cxx
/usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/vcl/qt5/Qt5Instance.cxx:416:25: error: no viable constructor or deduction guide for deduction of template arguments of 'function'
        RunInMainThread(std::function([&, this]() { pPicker = createPicker(context, eMode); }));
                        ^
/usr/include/c++/v1/functional:1427:48: note: candidate template ignored: could not match 'function<_Fp>' against '(lambda at /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/vcl/qt5/Qt5Instance.cxx:416:39)'
template<class _Fp> class _LIBCPP_TEMPLATE_VIS function; // undefined

Full description is here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239988
Comment 1 Mike Kaganski 2019-09-12 08:27:11 UTC
Fixed in master - https://git.libreoffice.org/core/+/81fd3bb4d76a0e57a4e8464cb1c5813115ea28f3 by Noel Grandin.

Thank you very much for filing this! The report, and the work by Noel, allowed to build the plugin to catch things like this early.