=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for fcitx5-kkc-5.0.4nb11 [ 3%] Building CXX object src/CMakeFiles/kkc.dir/kkc.cpp.o [ 3%] Built target fcitx5-kkc-config_autogen_timestamp_deps [ 9%] Generating fcitx5-kkc-da.mo [ 6%] Generating kkc-addon.conf [ 12%] Generating org.fcitx.Fcitx5.Addon.Kkc.metainfo.xml [ 16%] Generating fcitx5-kkc-de.mo [ 22%] Generating fcitx5-kkc-ca.mo [ 19%] Generating kkc.conf [ 22%] Built target org.fcitx.Fcitx5.Addon.Kkc.metainfo.xml.in-fmt [ 25%] Generating fcitx5-kkc-ja.mo [ 25%] Built target kkc-addon.conf.in-fmt [ 29%] Generating fcitx5-kkc-he.mo [ 32%] Generating fcitx5-kkc-ko.mo [ 35%] Generating fcitx5-kkc-tr.mo [ 38%] Generating fcitx5-kkc-ru.mo [ 38%] Built target kkc.conf.in-fmt [ 41%] Generating fcitx5-kkc-zh_CN.mo [ 45%] Generating fcitx5-kkc-zh_TW.mo [ 48%] Automatic MOC and UIC for target fcitx5-kkc-config [ 48%] Built target fcitx5-kkc-translation [ 48%] Built target fcitx5-kkc-config_autogen [ 51%] Generating ui_adddictdialog.h [ 54%] Generating ui_addshortcutdialog.h [ 58%] Generating ui_dictwidget.h [ 61%] Generating ui_shortcutwidget.h [ 64%] Building CXX object gui/CMakeFiles/fcitx5-kkc-config.dir/fcitx5-kkc-config_autogen/mocs_compilation.cpp.o [ 70%] Building CXX object gui/CMakeFiles/fcitx5-kkc-config.dir/main.cpp.o [ 70%] Building CXX object gui/CMakeFiles/fcitx5-kkc-config.dir/dictwidget.cpp.o [ 74%] Building CXX object gui/CMakeFiles/fcitx5-kkc-config.dir/shortcutwidget.cpp.o [ 77%] Building CXX object gui/CMakeFiles/fcitx5-kkc-config.dir/adddictdialog.cpp.o [ 80%] Building CXX object gui/CMakeFiles/fcitx5-kkc-config.dir/dictmodel.cpp.o [ 83%] Building CXX object gui/CMakeFiles/fcitx5-kkc-config.dir/shortcutmodel.cpp.o In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:27: error: 'underlying_type_t' in namespace 'std' does not name a template type typedef typename std::underlying_type_t storage_type; ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:27: note: suggested alternative: 'underlying_type' typedef typename std::underlying_type_t storage_type; ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:44: error: expected unqualified-id before '<' token typedef typename std::underlying_type_t storage_type; ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:37:32: error: expected ')' before 'i' explicit Flags(storage_type i = 0) : flags_(i) {} ~ ^~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:46:31: error: expected type-specifier before 'storage_type' constexpr inline operator storage_type() const { return flags_; } ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:47:22: error: 'storage_type' does not name a type constexpr inline storage_type toInteger() const { return flags_; } ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:22: error: declaration of 'operator=' as non-function Flags &operator=(storage_type f) { ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:20: error: expected ';' at end of member declaration Flags &operator=(storage_type f) { ^ ; /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:34: error: expected ')' before 'f' Flags &operator=(storage_type f) { ~ ^~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:130:5: error: 'storage_type' does not name a type storage_type flags_; ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In constructor 'constexpr fcitx::Flags::Flags(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:31: error: class 'fcitx::Flags' does not have any field named 'flags_' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:50: error: 'storage_type' does not name a type constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In constructor 'constexpr fcitx::Flags::Flags(const std::initializer_list<_Tp>&)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:61: error: class 'fcitx::Flags' does not have any field named 'flags_' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:42:5: error: 'constexpr' constructor does not have empty body } ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:9: error: 'flags_' was not declared in this scope flags_ = static_cast(f); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:9: note: suggested alternative: 'Flags' flags_ = static_cast(f); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:30: error: 'storage_type' does not name a type flags_ = static_cast(f); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator!() const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:58:48: error: 'flags_' was not declared in this scope constexpr bool operator!() const { return !flags_; } ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:58:48: note: suggested alternative: 'Flags' constexpr bool operator!() const { return !flags_; } ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator&=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:60:9: error: 'flags_' was not declared in this scope flags_ &= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:60:9: note: suggested alternative: 'Flags' flags_ &= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator&=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:9: error: 'flags_' was not declared in this scope flags_ &= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:9: note: suggested alternative: 'Flags' flags_ &= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:31: error: 'storage_type' does not name a type flags_ &= static_cast(flag); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator|=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:68:9: error: 'flags_' was not declared in this scope flags_ |= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:68:9: note: suggested alternative: 'Flags' flags_ |= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator|=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:9: error: 'flags_' was not declared in this scope flags_ |= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:9: note: suggested alternative: 'Flags' flags_ |= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:31: error: 'storage_type' does not name a type flags_ |= static_cast(flag); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator^=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:76:9: error: 'flags_' was not declared in this scope flags_ ^= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:76:9: note: suggested alternative: 'Flags' flags_ ^= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator^=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:9: error: 'flags_' was not declared in this scope flags_ ^= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:9: note: suggested alternative: 'Flags' flags_ ^= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:31: error: 'storage_type' does not name a type flags_ ^= static_cast(flag); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator|(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:84:22: error: 'flags_' was not declared in this scope return Flags(flags_ | f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:84:22: note: suggested alternative: 'Flags' return Flags(flags_ | f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator|(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:22: error: 'flags_' was not declared in this scope return Flags(flags_ | static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:22: note: suggested alternative: 'Flags' return Flags(flags_ | static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: error: 'storage_type' was not declared in this scope return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:21: error: expected primary-expression before '(' token return Flags(flags_ | static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: error: 'storage_type' does not name a type return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator^(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:90:22: error: 'flags_' was not declared in this scope return Flags(flags_ ^ f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:90:22: note: suggested alternative: 'Flags' return Flags(flags_ ^ f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator^(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:22: error: 'flags_' was not declared in this scope return Flags(flags_ ^ static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:22: note: suggested alternative: 'Flags' return Flags(flags_ ^ static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: error: 'storage_type' was not declared in this scope return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:21: error: expected primary-expression before '(' token return Flags(flags_ ^ static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: error: 'storage_type' does not name a type return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator&(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:96:22: error: 'flags_' was not declared in this scope return Flags(flags_ & f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:96:22: note: suggested alternative: 'Flags' return Flags(flags_ & f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator&(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:22: error: 'flags_' was not declared in this scope return Flags(flags_ & static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:22: note: suggested alternative: 'Flags' return Flags(flags_ & static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: error: 'storage_type' was not declared in this scope return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:21: error: expected primary-expression before '(' token return Flags(flags_ & static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: error: 'storage_type' does not name a type return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator~() const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:101:62: error: 'flags_' was not declared in this scope constexpr inline Flags operator~() const { return Flags(~flags_); } ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:101:62: note: suggested alternative: 'Flags' constexpr inline Flags operator~() const { return Flags(~flags_); } ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::unset(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:22: error: 'flags_' was not declared in this scope return Flags(flags_ & (~static_cast(f))); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:22: note: suggested alternative: 'Flags' return Flags(flags_ & (~static_cast(f))); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: error: 'storage_type' was not declared in this scope return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:21: error: expected primary-expression before '(' token return Flags(flags_ & (~static_cast(f))); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: error: 'storage_type' does not name a type return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::unset(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:108:22: error: 'flags_' was not declared in this scope return Flags(flags_ & (~f.flags_)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:108:22: note: suggested alternative: 'Flags' return Flags(flags_ & (~f.flags_)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:16: error: 'flags_' was not declared in this scope return flags_ == f.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:16: note: suggested alternative: 'Flags' return flags_ == f.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator==(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:16: error: 'flags_' was not declared in this scope return flags_ == static_cast(f); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:16: note: suggested alternative: 'Flags' return flags_ == static_cast(f); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:38: error: 'storage_type' does not name a type return flags_ == static_cast(f); ^~~~~~~~~~~~ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils.h:22, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:29, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: error: 'string_view' is not a member of 'std' struct UniversalPieceHelper { ^~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: note: 'std::string_view' is only available from C++17 onwards /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: error: 'string_view' is not a member of 'std' /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: note: 'std::string_view' is only available from C++17 onwards /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:45: error: template argument 1 is invalid struct UniversalPieceHelper { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:55:31: error: 'enable_if_t' in namespace 'std' does not name a template type typename = std::enable_if_t::value>> ^~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:55:26: note: suggested alternative: 'enable_if' typename = std::enable_if_t::value>> ^~~ enable_if /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:55:42: error: expected '>' before '<' token typename = std::enable_if_t::value>> ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:26, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/fs.h:43:24: error: 'optional' in namespace 'std' does not name a template type FCITXUTILS_EXPORT std::optional readlink(const std::string &path); ^~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/fs.h:43:19: note: 'std::optional' is only available from C++17 onwards FCITXUTILS_EXPORT std::optional readlink(const std::string &path); ^~~ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:27, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:42:75: error: no matching function for call to 'fcitx::Flags::Flags()' explicit Key(KeySym sym = FcitxKey_None, KeyStates states = KeyStates(), ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:12, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:27, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:57:71: error: no matching function for call to 'fcitx::Flags::Flags()' static Key fromKeyCode(int code = 0, KeyStates states = KeyStates()) { ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:12, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:27, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:75:45: error: no matching function for call to 'fcitx::Flags::Flags()' KeyStates states = KeyStates()) const { ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:12, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:29, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:100:43: error: 'operator()' function uses 'auto' type specifier without trailing return type inline auto operator()(T const value) const { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:100:43: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: In member function 'auto fcitx::EnumHash::operator()(T) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: error: 'underlying_type_t' is not a member of 'std' return std::hash>()( ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: note: suggested alternative: 'underlying_type' return std::hash>()( ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: error: 'underlying_type_t' is not a member of 'std' /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: note: suggested alternative: 'underlying_type' return std::hash>()( ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:49: error: template argument 1 is invalid return std::hash>()( ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:53: error: expected primary-expression before ')' token return std::hash>()( ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:30: error: 'underlying_type_t' in namespace 'std' does not name a template type static_cast>(value)); ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:25: note: suggested alternative: 'underlying_type' static_cast>(value)); ^~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected '>' before '<' token static_cast>(value)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected '(' before '<' token static_cast>(value)); ^ ( /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected primary-expression before '<' token /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:49: error: expected primary-expression before '>>' token static_cast>(value)); ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:111:16: error: parameter declared 'auto' template ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:120:48: error: parameter declared 'auto' template ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:121:55: note: invalid template non-type parameter using UniqueCPtr = std::unique_ptr>; ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:121:67: error: template argument 2 is invalid using UniqueCPtr = std::unique_ptr>; ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:40: error: 'UniqueCPtr' was not declared in this scope static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:51: error: expected primary-expression before 'char' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:51: error: expected ')' before 'char' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ~ ^~~~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected ',' before ';' token ""); // ensure no overhead ^ , /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected string-literal before ';' token /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected ')' before ';' token ""); // ensure no overhead ^ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:14: note: to match this '(' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:125:66: note: invalid template non-type parameter using UniqueFilePtr = std::unique_ptr>; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:125:72: error: template argument 2 is invalid using UniqueFilePtr = std::unique_ptr>; ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:128:34: error: 'makeUniqueCPtr' function uses 'auto' type specifier without trailing return type inline auto makeUniqueCPtr(T *ptr) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:128:34: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: In function 'auto fcitx::makeUniqueCPtr(T*)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:12: error: 'UniqueCPtr' was not declared in this scope return UniqueCPtr(ptr); ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:12: note: suggested alternative: 'makeUniqueCPtr' return UniqueCPtr(ptr); ^~~~~~~~~~ makeUniqueCPtr /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:24: error: expected primary-expression before '>' token return UniqueCPtr(ptr); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:35: error: 'UniqueCPtr' was not declared in this scope FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:35: note: suggested alternative: 'makeUniqueCPtr' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~~~~~~~ makeUniqueCPtr /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:46: error: expected primary-expression before 'char' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:69: error: expected primary-expression before '*' token FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:70: error: 'n' was not declared in this scope FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:45: error: expected primary-expression before '*' token std::FILE *stream); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:46: error: 'stream' was not declared in this scope std::FILE *stream); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:46: note: suggested alternative: 'strcat' std::FILE *stream); ^~~~~~ strcat /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:52: error: expression list treated as compound expression in initializer [-fpermissive] std::FILE *stream); ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:30, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:53:72: error: 'callWithIndices' function uses 'auto' type specifier without trailing return type auto callWithIndices(F func, Sequence, std::tuple &tuple) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:53:72: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:59:54: error: 'callWithTuple' function uses 'auto' type specifier without trailing return type auto callWithTuple(F func, std::tuple &tuple) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:59:54: note: deduced return type only available with -std=c++14 or -std=gnu++14 In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:62:27: error: 'std::underlying_type_t' has not been declared void setLogLevel(std::underlying_type_t l); ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:62:44: error: expected ',' or '...' before '<' token void setLogLevel(std::underlying_type_t l); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h: In member function 'fcitx::LogMessageBuilder& fcitx::LogMessageBuilder::operator<<(const fcitx::Key&)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:96:44: error: 'fcitx::KeyStates' {aka 'class fcitx::Flags'} has no member named 'toInteger' << " states=" << key.states().toInteger() << ")"; ^~~~~~~~~ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictmodel.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In instantiation of 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const [with Enum = fcitx::KeyState]': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:63:51: required from here /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:28: error: 'const class fcitx::Flags' has no member named 'flags_'; did you mean 'Flags'? return flags_ == f.flags_; ~~^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:122:5: error: body of 'constexpr' function 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const [with Enum = fcitx::KeyState]' not a return-statement } ^ --- gui/CMakeFiles/fcitx5-kkc-config.dir/dictmodel.cpp.o --- *** [gui/CMakeFiles/fcitx5-kkc-config.dir/dictmodel.cpp.o] Error code 1 make[2]: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:27: error: 'underlying_type_t' in namespace 'std' does not name a template type typedef typename std::underlying_type_t storage_type; ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:27: note: suggested alternative: 'underlying_type' typedef typename std::underlying_type_t storage_type; ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:44: error: expected unqualified-id before '<' token typedef typename std::underlying_type_t storage_type; ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:37:32: error: expected ')' before 'i' explicit Flags(storage_type i = 0) : flags_(i) {} ~ ^~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:46:31: error: expected type-specifier before 'storage_type' constexpr inline operator storage_type() const { return flags_; } ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:47:22: error: 'storage_type' does not name a type constexpr inline storage_type toInteger() const { return flags_; } ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:22: error: declaration of 'operator=' as non-function Flags &operator=(storage_type f) { ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:20: error: expected ';' at end of member declaration Flags &operator=(storage_type f) { ^ ; /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:34: error: expected ')' before 'f' Flags &operator=(storage_type f) { ~ ^~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:130:5: error: 'storage_type' does not name a type storage_type flags_; ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In constructor 'constexpr fcitx::Flags::Flags(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:31: error: class 'fcitx::Flags' does not have any field named 'flags_' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:50: error: 'storage_type' does not name a type constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In constructor 'constexpr fcitx::Flags::Flags(const std::initializer_list<_Tp>&)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:61: error: class 'fcitx::Flags' does not have any field named 'flags_' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:42:5: error: 'constexpr' constructor does not have empty body } ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:9: error: 'flags_' was not declared in this scope flags_ = static_cast(f); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:9: note: suggested alternative: 'Flags' flags_ = static_cast(f); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:30: error: 'storage_type' does not name a type flags_ = static_cast(f); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator!() const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:58:48: error: 'flags_' was not declared in this scope constexpr bool operator!() const { return !flags_; } ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:58:48: note: suggested alternative: 'Flags' constexpr bool operator!() const { return !flags_; } ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator&=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:60:9: error: 'flags_' was not declared in this scope flags_ &= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:60:9: note: suggested alternative: 'Flags' flags_ &= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator&=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:9: error: 'flags_' was not declared in this scope flags_ &= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:9: note: suggested alternative: 'Flags' flags_ &= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:31: error: 'storage_type' does not name a type flags_ &= static_cast(flag); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator|=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:68:9: error: 'flags_' was not declared in this scope flags_ |= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:68:9: note: suggested alternative: 'Flags' flags_ |= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator|=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:9: error: 'flags_' was not declared in this scope flags_ |= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:9: note: suggested alternative: 'Flags' flags_ |= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:31: error: 'storage_type' does not name a type flags_ |= static_cast(flag); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator^=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:76:9: error: 'flags_' was not declared in this scope flags_ ^= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:76:9: note: suggested alternative: 'Flags' flags_ ^= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator^=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:9: error: 'flags_' was not declared in this scope flags_ ^= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:9: note: suggested alternative: 'Flags' flags_ ^= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:31: error: 'storage_type' does not name a type flags_ ^= static_cast(flag); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator|(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:84:22: error: 'flags_' was not declared in this scope return Flags(flags_ | f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:84:22: note: suggested alternative: 'Flags' return Flags(flags_ | f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator|(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:22: error: 'flags_' was not declared in this scope return Flags(flags_ | static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:22: note: suggested alternative: 'Flags' return Flags(flags_ | static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: error: 'storage_type' was not declared in this scope return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:21: error: expected primary-expression before '(' token return Flags(flags_ | static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: error: 'storage_type' does not name a type return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator^(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:90:22: error: 'flags_' was not declared in this scope return Flags(flags_ ^ f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:90:22: note: suggested alternative: 'Flags' return Flags(flags_ ^ f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator^(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:22: error: 'flags_' was not declared in this scope return Flags(flags_ ^ static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:22: note: suggested alternative: 'Flags' return Flags(flags_ ^ static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: error: 'storage_type' was not declared in this scope return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:21: error: expected primary-expression before '(' token return Flags(flags_ ^ static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: error: 'storage_type' does not name a type return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator&(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:96:22: error: 'flags_' was not declared in this scope return Flags(flags_ & f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:96:22: note: suggested alternative: 'Flags' return Flags(flags_ & f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator&(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:22: error: 'flags_' was not declared in this scope return Flags(flags_ & static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:22: note: suggested alternative: 'Flags' return Flags(flags_ & static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: error: 'storage_type' was not declared in this scope return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:21: error: expected primary-expression before '(' token return Flags(flags_ & static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: error: 'storage_type' does not name a type return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator~() const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:101:62: error: 'flags_' was not declared in this scope constexpr inline Flags operator~() const { return Flags(~flags_); } ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:101:62: note: suggested alternative: 'Flags' constexpr inline Flags operator~() const { return Flags(~flags_); } ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::unset(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:22: error: 'flags_' was not declared in this scope return Flags(flags_ & (~static_cast(f))); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:22: note: suggested alternative: 'Flags' return Flags(flags_ & (~static_cast(f))); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: error: 'storage_type' was not declared in this scope return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:21: error: expected primary-expression before '(' token return Flags(flags_ & (~static_cast(f))); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: error: 'storage_type' does not name a type return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::unset(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:108:22: error: 'flags_' was not declared in this scope return Flags(flags_ & (~f.flags_)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:108:22: note: suggested alternative: 'Flags' return Flags(flags_ & (~f.flags_)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:16: error: 'flags_' was not declared in this scope return flags_ == f.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:16: note: suggested alternative: 'Flags' return flags_ == f.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator==(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:16: error: 'flags_' was not declared in this scope return flags_ == static_cast(f); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:16: note: suggested alternative: 'Flags' return flags_ == static_cast(f); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:38: error: 'storage_type' does not name a type return flags_ == static_cast(f); ^~~~~~~~~~~~ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils.h:22, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:29, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: error: 'string_view' is not a member of 'std' struct UniversalPieceHelper { ^~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: note: 'std::string_view' is only available from C++17 onwards /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: error: 'string_view' is not a member of 'std' /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: note: 'std::string_view' is only available from C++17 onwards /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:45: error: template argument 1 is invalid struct UniversalPieceHelper { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:55:31: error: 'enable_if_t' in namespace 'std' does not name a template type typename = std::enable_if_t::value>> ^~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:55:26: note: suggested alternative: 'enable_if' typename = std::enable_if_t::value>> ^~~ enable_if /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:55:42: error: expected '>' before '<' token typename = std::enable_if_t::value>> ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:26, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/fs.h:43:24: error: 'optional' in namespace 'std' does not name a template type FCITXUTILS_EXPORT std::optional readlink(const std::string &path); ^~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/fs.h:43:19: note: 'std::optional' is only available from C++17 onwards FCITXUTILS_EXPORT std::optional readlink(const std::string &path); ^~~ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:27, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:42:75: error: no matching function for call to 'fcitx::Flags::Flags()' explicit Key(KeySym sym = FcitxKey_None, KeyStates states = KeyStates(), ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:12, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:27, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:57:71: error: no matching function for call to 'fcitx::Flags::Flags()' static Key fromKeyCode(int code = 0, KeyStates states = KeyStates()) { ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:12, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:27, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:75:45: error: no matching function for call to 'fcitx::Flags::Flags()' KeyStates states = KeyStates()) const { ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:12, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:29, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:100:43: error: 'operator()' function uses 'auto' type specifier without trailing return type inline auto operator()(T const value) const { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:100:43: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: In member function 'auto fcitx::EnumHash::operator()(T) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: error: 'underlying_type_t' is not a member of 'std' return std::hash>()( ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: note: suggested alternative: 'underlying_type' return std::hash>()( ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: error: 'underlying_type_t' is not a member of 'std' /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: note: suggested alternative: 'underlying_type' return std::hash>()( ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:49: error: template argument 1 is invalid return std::hash>()( ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:53: error: expected primary-expression before ')' token return std::hash>()( ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:30: error: 'underlying_type_t' in namespace 'std' does not name a template type static_cast>(value)); ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:25: note: suggested alternative: 'underlying_type' static_cast>(value)); ^~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected '>' before '<' token static_cast>(value)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected '(' before '<' token static_cast>(value)); ^ ( /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected primary-expression before '<' token /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:49: error: expected primary-expression before '>>' token static_cast>(value)); ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:111:16: error: parameter declared 'auto' template ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:120:48: error: parameter declared 'auto' template ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:121:55: note: invalid template non-type parameter using UniqueCPtr = std::unique_ptr>; ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:121:67: error: template argument 2 is invalid using UniqueCPtr = std::unique_ptr>; ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:40: error: 'UniqueCPtr' was not declared in this scope static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:51: error: expected primary-expression before 'char' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:51: error: expected ')' before 'char' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ~ ^~~~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected ',' before ';' token ""); // ensure no overhead ^ , /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected string-literal before ';' token /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected ')' before ';' token ""); // ensure no overhead ^ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:14: note: to match this '(' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:125:66: note: invalid template non-type parameter using UniqueFilePtr = std::unique_ptr>; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:125:72: error: template argument 2 is invalid using UniqueFilePtr = std::unique_ptr>; ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:128:34: error: 'makeUniqueCPtr' function uses 'auto' type specifier without trailing return type inline auto makeUniqueCPtr(T *ptr) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:128:34: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: In function 'auto fcitx::makeUniqueCPtr(T*)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:12: error: 'UniqueCPtr' was not declared in this scope return UniqueCPtr(ptr); ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:12: note: suggested alternative: 'makeUniqueCPtr' return UniqueCPtr(ptr); ^~~~~~~~~~ makeUniqueCPtr /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:24: error: expected primary-expression before '>' token return UniqueCPtr(ptr); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:35: error: 'UniqueCPtr' was not declared in this scope FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:35: note: suggested alternative: 'makeUniqueCPtr' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~~~~~~~ makeUniqueCPtr /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:46: error: expected primary-expression before 'char' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:69: error: expected primary-expression before '*' token FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:70: error: 'n' was not declared in this scope FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:45: error: expected primary-expression before '*' token std::FILE *stream); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:46: error: 'stream' was not declared in this scope std::FILE *stream); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:46: note: suggested alternative: 'strcat' std::FILE *stream); ^~~~~~ strcat /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:52: error: expression list treated as compound expression in initializer [-fpermissive] std::FILE *stream); ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:30, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:53:72: error: 'callWithIndices' function uses 'auto' type specifier without trailing return type auto callWithIndices(F func, Sequence, std::tuple &tuple) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:53:72: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:59:54: error: 'callWithTuple' function uses 'auto' type specifier without trailing return type auto callWithTuple(F func, std::tuple &tuple) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:59:54: note: deduced return type only available with -std=c++14 or -std=gnu++14 In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:62:27: error: 'std::underlying_type_t' has not been declared void setLogLevel(std::underlying_type_t l); ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:62:44: error: expected ',' or '...' before '<' token void setLogLevel(std::underlying_type_t l); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h: In member function 'fcitx::LogMessageBuilder& fcitx::LogMessageBuilder::operator<<(const fcitx::Key&)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:96:44: error: 'fcitx::KeyStates' {aka 'class fcitx::Flags'} has no member named 'toInteger' << " states=" << key.states().toInteger() << ")"; ^~~~~~~~~ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/adddictdialog.cpp:13: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In instantiation of 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const [with Enum = fcitx::KeyState]': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:63:51: required from here /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:28: error: 'const class fcitx::Flags' has no member named 'flags_'; did you mean 'Flags'? return flags_ == f.flags_; ~~^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:122:5: error: body of 'constexpr' function 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const [with Enum = fcitx::KeyState]' not a return-statement } ^ --- gui/CMakeFiles/fcitx5-kkc-config.dir/adddictdialog.cpp.o --- *** [gui/CMakeFiles/fcitx5-kkc-config.dir/adddictdialog.cpp.o] Error code 1 make[2]: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 In file included from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:100:43: error: 'operator()' function uses 'auto' type specifier without trailing return type inline auto operator()(T const value) const { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:100:43: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: In member function 'auto fcitx::EnumHash::operator()(T) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: error: 'underlying_type_t' is not a member of 'std' return std::hash>()( ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: note: suggested alternative: 'underlying_type' return std::hash>()( ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: error: 'underlying_type_t' is not a member of 'std' /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: note: suggested alternative: 'underlying_type' return std::hash>()( ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:49: error: template argument 1 is invalid return std::hash>()( ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:53: error: expected primary-expression before ')' token return std::hash>()( ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:30: error: 'underlying_type_t' in namespace 'std' does not name a template type static_cast>(value)); ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:25: note: suggested alternative: 'underlying_type' static_cast>(value)); ^~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected '>' before '<' token static_cast>(value)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected '(' before '<' token static_cast>(value)); ^ ( /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected primary-expression before '<' token /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:49: error: expected primary-expression before '>>' token static_cast>(value)); ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:111:16: error: parameter declared 'auto' template ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:120:48: error: parameter declared 'auto' template ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:121:55: note: invalid template non-type parameter using UniqueCPtr = std::unique_ptr>; ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:121:67: error: template argument 2 is invalid using UniqueCPtr = std::unique_ptr>; ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:40: error: 'UniqueCPtr' was not declared in this scope static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:51: error: expected primary-expression before 'char' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:51: error: expected ')' before 'char' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ~ ^~~~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected ',' before ';' token ""); // ensure no overhead ^ , /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected string-literal before ';' token /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected ')' before ';' token ""); // ensure no overhead ^ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:14: note: to match this '(' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:125:66: note: invalid template non-type parameter using UniqueFilePtr = std::unique_ptr>; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:125:72: error: template argument 2 is invalid using UniqueFilePtr = std::unique_ptr>; ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:128:34: error: 'makeUniqueCPtr' function uses 'auto' type specifier without trailing return type inline auto makeUniqueCPtr(T *ptr) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:128:34: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: In function 'auto fcitx::makeUniqueCPtr(T*)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:12: error: 'UniqueCPtr' was not declared in this scope return UniqueCPtr(ptr); ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:12: note: suggested alternative: 'makeUniqueCPtr' return UniqueCPtr(ptr); ^~~~~~~~~~ makeUniqueCPtr /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:24: error: expected primary-expression before '>' token return UniqueCPtr(ptr); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:35: error: 'UniqueCPtr' was not declared in this scope FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:35: note: suggested alternative: 'makeUniqueCPtr' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~~~~~~~ makeUniqueCPtr /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:46: error: expected primary-expression before 'char' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:69: error: expected primary-expression before '*' token FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:70: error: 'n' was not declared in this scope FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:70: note: suggested alternative: 'yn' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ yn /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:45: error: expected primary-expression before '*' token std::FILE *stream); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:46: error: 'stream' was not declared in this scope std::FILE *stream); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:46: note: suggested alternative: 'strcat' std::FILE *stream); ^~~~~~ strcat /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:52: error: expression list treated as compound expression in initializer [-fpermissive] std::FILE *stream); ^ In file included from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:17:26: error: 'UniqueCPtr' does not name a type; did you mean 'makeUniqueCPtr'? using GObjectUniquePtr = UniqueCPtr; ^~~~~~~~~~ makeUniqueCPtr /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:20:28: error: 'makeGObjectUnique' function uses 'auto' type specifier without trailing return type auto makeGObjectUnique(T *p) { ^ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:20:28: note: deduced return type only available with -std=c++14 or -std=gnu++14 /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h: In function 'auto fcitx::makeGObjectUnique(T*)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:21:12: error: 'GObjectUniquePtr' was not declared in this scope return GObjectUniquePtr(p); ^~~~~~~~~~~~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:21:12: note: suggested alternative: 'makeGObjectUnique' return GObjectUniquePtr(p); ^~~~~~~~~~~~~~~~ makeGObjectUnique /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:21:30: error: expected primary-expression before '>' token return GObjectUniquePtr(p); ^ In file included from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: At global scope: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:53:5: error: 'GObjectUniquePtr' does not name a type; did you mean 'makeGObjectUnique'? GObjectUniquePtr event_; ^~~~~~~~~~~~~~~~ makeGObjectUnique /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: In constructor 'fcitx::ShortcutEntry::ShortcutEntry(const QString&, KkcKeyEvent*, const QString&, KkcInputMode)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:21:30: error: class 'fcitx::ShortcutEntry' does not have any field named 'event_' : command_(command), event_(KKC_KEY_EVENT(g_object_ref(event))), ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:23:49: error: 'event_' was not declared in this scope gchar *keystr = kkc_key_event_to_string(event_.get()); ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:23:49: note: suggested alternative: 'event' gchar *keystr = kkc_key_event_to_string(event_.get()); ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: In copy constructor 'fcitx::ShortcutEntry::ShortcutEntry(const fcitx::ShortcutEntry&)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:29:47: error: 'const class fcitx::ShortcutEntry' has no member named 'event_'; did you mean 'event'? : ShortcutEntry(other.command_, other.event_.get(), other.label_, ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: In member function 'fcitx::ShortcutEntry& fcitx::ShortcutEntry::operator=(const fcitx::ShortcutEntry&)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:35:9: error: 'event_' was not declared in this scope event_.reset(KKC_KEY_EVENT(g_object_ref(other.event()))); ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:35:9: note: suggested alternative: 'event' event_.reset(KKC_KEY_EVENT(g_object_ref(other.event()))); ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: In member function 'KkcKeyEvent* fcitx::ShortcutEntry::event() const': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:47:41: error: 'event_' was not declared in this scope KkcKeyEvent *event() const { return event_.get(); } ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:47:41: note: suggested alternative: 'event' KkcKeyEvent *event() const { return event_.get(); } ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: At global scope: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:85:5: error: 'GObjectUniquePtr' does not name a type; did you mean 'makeGObjectUnique'? GObjectUniquePtr userRule_; ^~~~~~~~~~~~~~~~ makeGObjectUnique In file included from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictwidget.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:100:43: error: 'operator()' function uses 'auto' type specifier without trailing return type inline auto operator()(T const value) const { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:100:43: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: In member function 'auto fcitx::EnumHash::operator()(T) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: error: 'underlying_type_t' is not a member of 'std' return std::hash>()( ^~~~~~~~~~~~~~~~~ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:21, from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:27: error: 'underlying_type_t' in namespace 'std' does not name a template type typedef typename std::underlying_type_t storage_type; ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:27: note: suggested alternative: 'underlying_type' typedef typename std::underlying_type_t storage_type; ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: note: suggested alternative: 'underlying_type' return std::hash>()( ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: error: 'underlying_type_t' is not a member of 'std' /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: note: suggested alternative: 'underlying_type' return std::hash>()( ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:49: error: template argument 1 is invalid return std::hash>()( ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:53: error: expected primary-expression before ')' token return std::hash>()( /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:44: error: expected unqualified-id before '<' token typedef typename std::underlying_type_t storage_type; ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:37:32: error: expected ')' before 'i' explicit Flags(storage_type i = 0) : flags_(i) {} ~ ^~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:46:31: error: expected type-specifier before 'storage_type' constexpr inline operator storage_type() const { return flags_; } ^~~~~~~~~~~~ ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:30: error: 'underlying_type_t' in namespace 'std' does not name a template type static_cast>(value)); ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:25: note: suggested alternative: 'underlying_type' static_cast>(value)); ^~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected '>' before '<' token static_cast>(value)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected '(' before '<' token static_cast>(value)); ^ ( /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected primary-expression before '<' token /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:49: error: expected primary-expression before '>>' token static_cast>(value)); ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:111:16: error: parameter declared 'auto' template ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:120:48: error: parameter declared 'auto' template ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:121:55: note: invalid template non-type parameter using UniqueCPtr = std::unique_ptr>; ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:121:67: error: template argument 2 is invalid using UniqueCPtr = std::unique_ptr>; ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:40: error: 'UniqueCPtr' was not declared in this scope static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:51: error: expected primary-expression before 'char' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:51: error: expected ')' before 'char' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ~ ^~~~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected ',' before ';' token ""); // ensure no overhead ^ , /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected string-literal before ';' token /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected ')' before ';' token ""); // ensure no overhead ^ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:14: note: to match this '(' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:125:66: note: invalid template non-type parameter using UniqueFilePtr = std::unique_ptr>; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:125:72: error: template argument 2 is invalid using UniqueFilePtr = std::unique_ptr>; ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:128:34: error: 'makeUniqueCPtr' function uses 'auto' type specifier without trailing return type inline auto makeUniqueCPtr(T *ptr) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:128:34: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: In function 'auto fcitx::makeUniqueCPtr(T*)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:12: error: 'UniqueCPtr' was not declared in this scope return UniqueCPtr(ptr); ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:47:22: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? constexpr inline storage_type toInteger() const { return flags_; } ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:22: error: declaration of 'operator=' as non-function Flags &operator=(storage_type f) { ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:20: error: expected ';' at end of member declaration Flags &operator=(storage_type f) { ^ ; /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:34: error: expected ')' before 'f' Flags &operator=(storage_type f) { ~ ^~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:12: note: suggested alternative: 'makeUniqueCPtr' return UniqueCPtr(ptr); ^~~~~~~~~~ makeUniqueCPtr /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:24: error: expected primary-expression before '>' token return UniqueCPtr(ptr); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:35: error: 'UniqueCPtr' was not declared in this scope FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:35: note: suggested alternative: 'makeUniqueCPtr' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~~~~~~~ makeUniqueCPtr /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:46: error: expected primary-expression before 'char' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:69: error: expected primary-expression before '*' token FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:70: error: 'n' was not declared in this scope FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:45: error: expected primary-expression before '*' token std::FILE *stream); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:46: error: 'stream' was not declared in this scope std::FILE *stream); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:46: note: suggested alternative: 'strcat' std::FILE *stream); ^~~~~~ strcat /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:52: error: expression list treated as compound expression in initializer [-fpermissive] std::FILE *stream); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:130:5: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? storage_type flags_; ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In constructor 'constexpr fcitx::Flags::Flags(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:31: error: class 'fcitx::Flags' does not have any field named 'flags_' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:50: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In constructor 'constexpr fcitx::Flags::Flags(const std::initializer_list<_Tp>&)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:61: error: class 'fcitx::Flags' does not have any field named 'flags_' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:42:5: error: 'constexpr' constructor does not have empty body } ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:9: error: 'flags_' was not declared in this scope flags_ = static_cast(f); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:9: note: suggested alternative: 'Flags' flags_ = static_cast(f); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:30: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? flags_ = static_cast(f); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator!() const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:58:48: error: 'flags_' was not declared in this scope constexpr bool operator!() const { return !flags_; } ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:58:48: note: suggested alternative: 'Flags' constexpr bool operator!() const { return !flags_; } ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator&=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:60:9: error: 'flags_' was not declared in this scope flags_ &= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:60:9: note: suggested alternative: 'Flags' flags_ &= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator&=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:9: error: 'flags_' was not declared in this scope flags_ &= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:9: note: suggested alternative: 'Flags' flags_ &= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:31: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? flags_ &= static_cast(flag); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator|=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:68:9: error: 'flags_' was not declared in this scope flags_ |= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:68:9: note: suggested alternative: 'Flags' flags_ |= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator|=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:9: error: 'flags_' was not declared in this scope flags_ |= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:9: note: suggested alternative: 'Flags' flags_ |= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:31: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? flags_ |= static_cast(flag); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator^=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:76:9: error: 'flags_' was not declared in this scope flags_ ^= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:76:9: note: suggested alternative: 'Flags' flags_ ^= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator^=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:9: error: 'flags_' was not declared in this scope flags_ ^= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:9: note: suggested alternative: 'Flags' flags_ ^= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:31: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? flags_ ^= static_cast(flag); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator|(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:84:22: error: 'flags_' was not declared in this scope return Flags(flags_ | f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:84:22: note: suggested alternative: 'Flags' return Flags(flags_ | f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator|(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:22: error: 'flags_' was not declared in this scope return Flags(flags_ | static_cast(f)); ^~~~~~ In file included from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:100:43: error: 'operator()' function uses 'auto' type specifier without trailing return type inline auto operator()(T const value) const { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:100:43: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: In member function 'auto fcitx::EnumHash::operator()(T) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: error: 'underlying_type_t' is not a member of 'std' return std::hash>()( ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: note: suggested alternative: 'underlying_type' return std::hash>()( ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: error: 'underlying_type_t' is not a member of 'std' /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:22: note: suggested alternative: 'Flags' return Flags(flags_ | static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: error: 'storage_type' was not declared in this scope return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: note: suggested alternative: 'underlying_type' return std::hash>()( ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:49: error: template argument 1 is invalid return std::hash>()( ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:53: error: expected primary-expression before ')' token return std::hash>()( ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:30: error: 'underlying_type_t' in namespace 'std' does not name a template type static_cast>(value)); ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:25: note: suggested alternative: 'underlying_type' static_cast>(value)); ^~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected '>' before '<' token static_cast>(value)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected '(' before '<' token static_cast>(value)); ^ ( /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected primary-expression before '<' token /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:49: error: expected primary-expression before '>>' token static_cast>(value)); ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:111:16: error: parameter declared 'auto' template ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:120:48: error: parameter declared 'auto' template ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:121:55: note: invalid template non-type parameter using UniqueCPtr = std::unique_ptr>; ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:121:67: error: template argument 2 is invalid using UniqueCPtr = std::unique_ptr>; ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:40: error: 'UniqueCPtr' was not declared in this scope static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: note: suggested alternative: 'g_uri_get_type' return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:21: error: expected primary-expression before '(' token return Flags(flags_ | static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:51: error: expected primary-expression before 'char' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:51: error: expected ')' before 'char' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ~ ^~~~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected ',' before ';' token ""); // ensure no overhead ^ , /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected string-literal before ';' token /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected ')' before ';' token ""); // ensure no overhead ^ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:14: note: to match this '(' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:125:66: note: invalid template non-type parameter using UniqueFilePtr = std::unique_ptr>; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:125:72: error: template argument 2 is invalid using UniqueFilePtr = std::unique_ptr>; ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:128:34: error: 'makeUniqueCPtr' function uses 'auto' type specifier without trailing return type inline auto makeUniqueCPtr(T *ptr) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:128:34: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: In function 'auto fcitx::makeUniqueCPtr(T*)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:12: error: 'UniqueCPtr' was not declared in this scope return UniqueCPtr(ptr); ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:12: note: suggested alternative: 'makeUniqueCPtr' return UniqueCPtr(ptr); ^~~~~~~~~~ makeUniqueCPtr /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:24: error: expected primary-expression before '>' token return UniqueCPtr(ptr); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:35: error: 'UniqueCPtr' was not declared in this scope FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator^(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:90:22: error: 'flags_' was not declared in this scope return Flags(flags_ ^ f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:90:22: note: suggested alternative: 'Flags' return Flags(flags_ ^ f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator^(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:22: error: 'flags_' was not declared in this scope return Flags(flags_ ^ static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:35: note: suggested alternative: 'makeUniqueCPtr' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~~~~~~~ makeUniqueCPtr /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:46: error: expected primary-expression before 'char' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:69: error: expected primary-expression before '*' token FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:70: error: 'n' was not declared in this scope FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:22: note: suggested alternative: 'Flags' return Flags(flags_ ^ static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: error: 'storage_type' was not declared in this scope return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:45: error: expected primary-expression before '*' token std::FILE *stream); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:46: error: 'stream' was not declared in this scope std::FILE *stream); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:46: note: suggested alternative: 'strcat' std::FILE *stream); ^~~~~~ strcat /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:52: error: expression list treated as compound expression in initializer [-fpermissive] std::FILE *stream); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: note: suggested alternative: 'g_uri_get_type' return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:21: error: expected primary-expression before '(' token return Flags(flags_ ^ static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator&(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:96:22: error: 'flags_' was not declared in this scope return Flags(flags_ & f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:96:22: note: suggested alternative: 'Flags' return Flags(flags_ & f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator&(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:22: error: 'flags_' was not declared in this scope return Flags(flags_ & static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:22: note: suggested alternative: 'Flags' return Flags(flags_ & static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: error: 'storage_type' was not declared in this scope return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ In file included from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictwidget.cpp:11: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:17:26: error: 'UniqueCPtr' does not name a type; did you mean 'makeUniqueCPtr'? using GObjectUniquePtr = UniqueCPtr; ^~~~~~~~~~ makeUniqueCPtr /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:20:28: error: 'makeGObjectUnique' function uses 'auto' type specifier without trailing return type auto makeGObjectUnique(T *p) { ^ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:20:28: note: deduced return type only available with -std=c++14 or -std=gnu++14 /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h: In function 'auto fcitx::makeGObjectUnique(T*)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:21:12: error: 'GObjectUniquePtr' was not declared in this scope return GObjectUniquePtr(p); ^~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: note: suggested alternative: 'g_uri_get_type' return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:21: error: expected primary-expression before '(' token return Flags(flags_ & static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator~() const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:101:62: error: 'flags_' was not declared in this scope constexpr inline Flags operator~() const { return Flags(~flags_); } ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:21:12: note: suggested alternative: 'makeGObjectUnique' return GObjectUniquePtr(p); ^~~~~~~~~~~~~~~~ makeGObjectUnique /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:21:30: error: expected primary-expression before '>' token return GObjectUniquePtr(p); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:101:62: note: suggested alternative: 'Flags' constexpr inline Flags operator~() const { return Flags(~flags_); } ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::unset(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:22: error: 'flags_' was not declared in this scope return Flags(flags_ & (~static_cast(f))); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:22: note: suggested alternative: 'Flags' return Flags(flags_ & (~static_cast(f))); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: error: 'storage_type' was not declared in this scope return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: note: suggested alternative: 'g_uri_get_type' return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:21: error: expected primary-expression before '(' token return Flags(flags_ & (~static_cast(f))); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::unset(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:108:22: error: 'flags_' was not declared in this scope return Flags(flags_ & (~f.flags_)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:108:22: note: suggested alternative: 'Flags' return Flags(flags_ & (~f.flags_)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:16: error: 'flags_' was not declared in this scope return flags_ == f.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:16: note: suggested alternative: 'Flags' return flags_ == f.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator==(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:16: error: 'flags_' was not declared in this scope return flags_ == static_cast(f); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:16: note: suggested alternative: 'Flags' return flags_ == static_cast(f); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:38: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return flags_ == static_cast(f); ^~~~~~~~~~~~ g_uri_get_type In file included from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:42:75: error: no matching function for call to 'fcitx::Flags::Flags()' explicit Key(KeySym sym = FcitxKey_None, KeyStates states = KeyStates(), ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:18, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:21, from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:57:71: error: no matching function for call to 'fcitx::Flags::Flags()' static Key fromKeyCode(int code = 0, KeyStates states = KeyStates()) { ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:18, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:21, from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:75:45: error: no matching function for call to 'fcitx::Flags::Flags()' KeyStates states = KeyStates()) const { ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:18, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:21, from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../common.h:17:26: error: 'UniqueCPtr' does not name a type; did you mean 'makeUniqueCPtr'? using GObjectUniquePtr = UniqueCPtr; ^~~~~~~~~~ makeUniqueCPtr /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../common.h:20:28: error: 'makeGObjectUnique' function uses 'auto' type specifier without trailing return type auto makeGObjectUnique(T *p) { ^ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../common.h:20:28: note: deduced return type only available with -std=c++14 or -std=gnu++14 /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../common.h: In function 'auto fcitx::makeGObjectUnique(T*)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../common.h:21:12: error: 'GObjectUniquePtr' was not declared in this scope return GObjectUniquePtr(p); ^~~~~~~~~~~~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../common.h:21:12: note: suggested alternative: 'makeGObjectUnique' return GObjectUniquePtr(p); ^~~~~~~~~~~~~~~~ makeGObjectUnique /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../common.h:21:30: error: expected primary-expression before '>' token return GObjectUniquePtr(p); ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils.h:22, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:29, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:16: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: error: 'string_view' is not a member of 'std' struct UniversalPieceHelper { ^~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: note: 'std::string_view' is only available from C++17 onwards /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: error: 'string_view' is not a member of 'std' /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: note: 'std::string_view' is only available from C++17 onwards /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:45: error: template argument 1 is invalid struct UniversalPieceHelper { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:55:31: error: 'enable_if_t' in namespace 'std' does not name a template type typename = std::enable_if_t::value>> ^~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:55:26: note: suggested alternative: 'enable_if' typename = std::enable_if_t::value>> ^~~ enable_if /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:55:42: error: expected '>' before '<' token typename = std::enable_if_t::value>> ^ In file included from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/dictwidget.cpp:11: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: At global scope: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:53:5: error: 'GObjectUniquePtr' does not name a type; did you mean 'makeGObjectUnique'? GObjectUniquePtr event_; ^~~~~~~~~~~~~~~~ makeGObjectUnique /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: In constructor 'fcitx::ShortcutEntry::ShortcutEntry(const QString&, KkcKeyEvent*, const QString&, KkcInputMode)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:21:30: error: class 'fcitx::ShortcutEntry' does not have any field named 'event_' : command_(command), event_(KKC_KEY_EVENT(g_object_ref(event))), ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:23:49: error: 'event_' was not declared in this scope gchar *keystr = kkc_key_event_to_string(event_.get()); ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:23:49: note: suggested alternative: 'event' gchar *keystr = kkc_key_event_to_string(event_.get()); ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: In copy constructor 'fcitx::ShortcutEntry::ShortcutEntry(const fcitx::ShortcutEntry&)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:29:47: error: 'const class fcitx::ShortcutEntry' has no member named 'event_'; did you mean 'event'? : ShortcutEntry(other.command_, other.event_.get(), other.label_, ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: In member function 'fcitx::ShortcutEntry& fcitx::ShortcutEntry::operator=(const fcitx::ShortcutEntry&)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:35:9: error: 'event_' was not declared in this scope event_.reset(KKC_KEY_EVENT(g_object_ref(other.event()))); ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:35:9: note: suggested alternative: 'event' event_.reset(KKC_KEY_EVENT(g_object_ref(other.event()))); ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: In member function 'KkcKeyEvent* fcitx::ShortcutEntry::event() const': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:47:41: error: 'event_' was not declared in this scope KkcKeyEvent *event() const { return event_.get(); } ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:47:41: note: suggested alternative: 'event' KkcKeyEvent *event() const { return event_.get(); } ^~~~~~ event In file included from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h: At global scope: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:53:5: error: 'GObjectUniquePtr' does not name a type; did you mean 'makeGObjectUnique'? GObjectUniquePtr event_; ^~~~~~~~~~~~~~~~ makeGObjectUnique /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h: In constructor 'fcitx::ShortcutEntry::ShortcutEntry(const QString&, KkcKeyEvent*, const QString&, KkcInputMode)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:21:30: error: class 'fcitx::ShortcutEntry' does not have any field named 'event_' : command_(command), event_(KKC_KEY_EVENT(g_object_ref(event))), ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:23:49: error: 'event_' was not declared in this scope gchar *keystr = kkc_key_event_to_string(event_.get()); ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: At global scope: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:85:5: error: 'GObjectUniquePtr' does not name a type; did you mean 'makeGObjectUnique'? GObjectUniquePtr userRule_; ^~~~~~~~~~~~~~~~ makeGObjectUnique /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:23:49: note: suggested alternative: 'event' gchar *keystr = kkc_key_event_to_string(event_.get()); ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h: In copy constructor 'fcitx::ShortcutEntry::ShortcutEntry(const fcitx::ShortcutEntry&)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:29:47: error: 'const class fcitx::ShortcutEntry' has no member named 'event_'; did you mean 'event'? : ShortcutEntry(other.command_, other.event_.get(), other.label_, ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h: In member function 'fcitx::ShortcutEntry& fcitx::ShortcutEntry::operator=(const fcitx::ShortcutEntry&)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:35:9: error: 'event_' was not declared in this scope event_.reset(KKC_KEY_EVENT(g_object_ref(other.event()))); ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:35:9: note: suggested alternative: 'event' event_.reset(KKC_KEY_EVENT(g_object_ref(other.event()))); ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h: In member function 'KkcKeyEvent* fcitx::ShortcutEntry::event() const': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:47:41: error: 'event_' was not declared in this scope KkcKeyEvent *event() const { return event_.get(); } ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:47:41: note: suggested alternative: 'event' KkcKeyEvent *event() const { return event_.get(); } ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h: At global scope: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:85:5: error: 'GObjectUniquePtr' does not name a type; did you mean 'makeGObjectUnique'? GObjectUniquePtr userRule_; ^~~~~~~~~~~~~~~~ makeGObjectUnique In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:21, from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:27: error: 'underlying_type_t' in namespace 'std' does not name a template type typedef typename std::underlying_type_t storage_type; ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:27: note: suggested alternative: 'underlying_type' typedef typename std::underlying_type_t storage_type; ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:44: error: expected unqualified-id before '<' token typedef typename std::underlying_type_t storage_type; ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:37:32: error: expected ')' before 'i' explicit Flags(storage_type i = 0) : flags_(i) {} ~ ^~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:46:31: error: expected type-specifier before 'storage_type' constexpr inline operator storage_type() const { return flags_; } ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:47:22: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? constexpr inline storage_type toInteger() const { return flags_; } ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:22: error: declaration of 'operator=' as non-function Flags &operator=(storage_type f) { ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:20: error: expected ';' at end of member declaration Flags &operator=(storage_type f) { ^ ; /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:34: error: expected ')' before 'f' Flags &operator=(storage_type f) { ~ ^~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:130:5: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? storage_type flags_; ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In constructor 'constexpr fcitx::Flags::Flags(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:31: error: class 'fcitx::Flags' does not have any field named 'flags_' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:50: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In constructor 'constexpr fcitx::Flags::Flags(const std::initializer_list<_Tp>&)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:61: error: class 'fcitx::Flags' does not have any field named 'flags_' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:42:5: error: 'constexpr' constructor does not have empty body } ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:9: error: 'flags_' was not declared in this scope flags_ = static_cast(f); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:9: note: suggested alternative: 'Flags' flags_ = static_cast(f); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:30: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? flags_ = static_cast(f); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator!() const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:58:48: error: 'flags_' was not declared in this scope constexpr bool operator!() const { return !flags_; } ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:58:48: note: suggested alternative: 'Flags' constexpr bool operator!() const { return !flags_; } ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator&=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:60:9: error: 'flags_' was not declared in this scope flags_ &= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:60:9: note: suggested alternative: 'Flags' flags_ &= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator&=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:9: error: 'flags_' was not declared in this scope flags_ &= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:9: note: suggested alternative: 'Flags' flags_ &= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:31: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? flags_ &= static_cast(flag); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator|=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:68:9: error: 'flags_' was not declared in this scope flags_ |= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:68:9: note: suggested alternative: 'Flags' flags_ |= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator|=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:9: error: 'flags_' was not declared in this scope flags_ |= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:9: note: suggested alternative: 'Flags' flags_ |= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:31: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? flags_ |= static_cast(flag); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator^=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:76:9: error: 'flags_' was not declared in this scope flags_ ^= flag.flags_; ^~~~~~ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:26, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:16: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/fs.h:43:24: error: 'optional' in namespace 'std' does not name a template type FCITXUTILS_EXPORT std::optional readlink(const std::string &path); ^~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/fs.h:43:19: note: 'std::optional' is only available from C++17 onwards FCITXUTILS_EXPORT std::optional readlink(const std::string &path); ^~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:76:9: note: suggested alternative: 'Flags' flags_ ^= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator^=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:9: error: 'flags_' was not declared in this scope flags_ ^= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:9: note: suggested alternative: 'Flags' flags_ ^= static_cast(flag); ^~~~~~ Flags In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:30, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:16: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:53:72: error: 'callWithIndices' function uses 'auto' type specifier without trailing return type auto callWithIndices(F func, Sequence, std::tuple &tuple) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:53:72: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:59:54: error: 'callWithTuple' function uses 'auto' type specifier without trailing return type auto callWithTuple(F func, std::tuple &tuple) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:59:54: note: deduced return type only available with -std=c++14 or -std=gnu++14 In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:16: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:62:27: error: 'std::underlying_type_t' has not been declared void setLogLevel(std::underlying_type_t l); ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:62:44: error: expected ',' or '...' before '<' token void setLogLevel(std::underlying_type_t l); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:31: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? flags_ ^= static_cast(flag); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator|(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:84:22: error: 'flags_' was not declared in this scope return Flags(flags_ | f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:84:22: note: suggested alternative: 'Flags' return Flags(flags_ | f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator|(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:22: error: 'flags_' was not declared in this scope return Flags(flags_ | static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:22: note: suggested alternative: 'Flags' return Flags(flags_ | static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: error: 'storage_type' was not declared in this scope return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: note: suggested alternative: 'g_uri_get_type' return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:21: error: expected primary-expression before '(' token return Flags(flags_ | static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator^(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:90:22: error: 'flags_' was not declared in this scope return Flags(flags_ ^ f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:90:22: note: suggested alternative: 'Flags' return Flags(flags_ ^ f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator^(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:22: error: 'flags_' was not declared in this scope return Flags(flags_ ^ static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:22: note: suggested alternative: 'Flags' return Flags(flags_ ^ static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: error: 'storage_type' was not declared in this scope return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h: In member function 'fcitx::LogMessageBuilder& fcitx::LogMessageBuilder::operator<<(const fcitx::Key&)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:96:44: error: 'fcitx::KeyStates' {aka 'class fcitx::Flags'} has no member named 'toInteger' << " states=" << key.states().toInteger() << ")"; ^~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: note: suggested alternative: 'g_uri_get_type' return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:21: error: expected primary-expression before '(' token return Flags(flags_ ^ static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator&(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:96:22: error: 'flags_' was not declared in this scope return Flags(flags_ & f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:96:22: note: suggested alternative: 'Flags' return Flags(flags_ & f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator&(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:22: error: 'flags_' was not declared in this scope return Flags(flags_ & static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:22: note: suggested alternative: 'Flags' return Flags(flags_ & static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: error: 'storage_type' was not declared in this scope return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: note: suggested alternative: 'g_uri_get_type' return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:21: error: expected primary-expression before '(' token return Flags(flags_ & static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator~() const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:101:62: error: 'flags_' was not declared in this scope constexpr inline Flags operator~() const { return Flags(~flags_); } ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:101:62: note: suggested alternative: 'Flags' constexpr inline Flags operator~() const { return Flags(~flags_); } ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::unset(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:22: error: 'flags_' was not declared in this scope return Flags(flags_ & (~static_cast(f))); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:22: note: suggested alternative: 'Flags' return Flags(flags_ & (~static_cast(f))); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: error: 'storage_type' was not declared in this scope return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: note: suggested alternative: 'g_uri_get_type' return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:21: error: expected primary-expression before '(' token return Flags(flags_ & (~static_cast(f))); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::unset(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:108:22: error: 'flags_' was not declared in this scope return Flags(flags_ & (~f.flags_)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:108:22: note: suggested alternative: 'Flags' return Flags(flags_ & (~f.flags_)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:16: error: 'flags_' was not declared in this scope return flags_ == f.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:16: note: suggested alternative: 'Flags' return flags_ == f.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator==(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:16: error: 'flags_' was not declared in this scope return flags_ == static_cast(f); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:16: note: suggested alternative: 'Flags' return flags_ == static_cast(f); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:38: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return flags_ == static_cast(f); ^~~~~~~~~~~~ g_uri_get_type In file included from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:42:75: error: no matching function for call to 'fcitx::Flags::Flags()' explicit Key(KeySym sym = FcitxKey_None, KeyStates states = KeyStates(), ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:18, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:21, from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:57:71: error: no matching function for call to 'fcitx::Flags::Flags()' static Key fromKeyCode(int code = 0, KeyStates states = KeyStates()) { ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:18, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:21, from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:75:45: error: no matching function for call to 'fcitx::Flags::Flags()' KeyStates states = KeyStates()) const { ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:18, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:21, from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/../../addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/EWIEGA46WW/moc_addshortcutdialog.cpp:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/fcitx5-kkc-config_autogen/mocs_compilation.cpp:3: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp: In constructor 'fcitx::KkcShortcutWidget::KkcShortcutWidget(QWidget*)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:29:28: error: 'qOverload' was not declared in this scope connect(ruleComboBox_, qOverload(&QComboBox::currentIndexChanged), ^~~~~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:29:28: note: suggested alternative: 'QOverload' connect(ruleComboBox_, qOverload(&QComboBox::currentIndexChanged), ^~~~~~~~~ QOverload /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:29:38: error: expected primary-expression before 'int' connect(ruleComboBox_, qOverload(&QComboBox::currentIndexChanged), ^~~ --- gui/CMakeFiles/fcitx5-kkc-config.dir/dictwidget.cpp.o --- *** [gui/CMakeFiles/fcitx5-kkc-config.dir/dictwidget.cpp.o] Error code 1 make[2]: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:21, from /usr/pkg/include/Fcitx5Qt5/Fcitx5QtWidgetsAddons/fcitxqtkeysequencewidget.h:47, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/ui_addshortcutdialog.h:20, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/addshortcutdialog.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutwidget.cpp:9: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In instantiation of 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const [with Enum = fcitx::KeyState]': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:63:51: required from here /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:28: error: 'const class fcitx::Flags' has no member named 'flags_'; did you mean 'Flags'? return flags_ == f.flags_; ~~^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:122:5: error: body of 'constexpr' function 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const [with Enum = fcitx::KeyState]' not a return-statement } ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In instantiation of 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const [with Enum = fcitx::KeyState]': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:63:51: required from here /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:28: error: 'const class fcitx::Flags' has no member named 'flags_'; did you mean 'Flags'? return flags_ == f.flags_; ~~^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:122:5: error: body of 'constexpr' function 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const [with Enum = fcitx::KeyState]' not a return-statement } ^ --- gui/CMakeFiles/fcitx5-kkc-config.dir/fcitx5-kkc-config_autogen/mocs_compilation.cpp.o --- *** [gui/CMakeFiles/fcitx5-kkc-config.dir/fcitx5-kkc-config_autogen/mocs_compilation.cpp.o] Error code 1 make[2]: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 --- gui/CMakeFiles/fcitx5-kkc-config.dir/shortcutwidget.cpp.o --- *** [gui/CMakeFiles/fcitx5-kkc-config.dir/shortcutwidget.cpp.o] Error code 1 make[2]: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 In file included from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:8: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:100:43: error: 'operator()' function uses 'auto' type specifier without trailing return type inline auto operator()(T const value) const { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:100:43: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: In member function 'auto fcitx::EnumHash::operator()(T) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: error: 'underlying_type_t' is not a member of 'std' return std::hash>()( ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: note: suggested alternative: 'underlying_type' return std::hash>()( ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: error: 'underlying_type_t' is not a member of 'std' /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:31: note: suggested alternative: 'underlying_type' return std::hash>()( ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:49: error: template argument 1 is invalid return std::hash>()( ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:101:53: error: expected primary-expression before ')' token return std::hash>()( ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:30: error: 'underlying_type_t' in namespace 'std' does not name a template type static_cast>(value)); ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:25: note: suggested alternative: 'underlying_type' static_cast>(value)); ^~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected '>' before '<' token static_cast>(value)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected '(' before '<' token static_cast>(value)); ^ ( /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:47: error: expected primary-expression before '<' token /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:102:49: error: expected primary-expression before '>>' token static_cast>(value)); ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:111:16: error: parameter declared 'auto' template ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:120:48: error: parameter declared 'auto' template ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:121:55: note: invalid template non-type parameter using UniqueCPtr = std::unique_ptr>; ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:121:67: error: template argument 2 is invalid using UniqueCPtr = std::unique_ptr>; ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:40: error: 'UniqueCPtr' was not declared in this scope static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:51: error: expected primary-expression before 'char' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:51: error: expected ')' before 'char' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ~ ^~~~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected ',' before ';' token ""); // ensure no overhead ^ , /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected string-literal before ';' token /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:123:18: error: expected ')' before ';' token ""); // ensure no overhead ^ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:122:14: note: to match this '(' static_assert(sizeof(char *) == sizeof(UniqueCPtr), ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:125:66: note: invalid template non-type parameter using UniqueFilePtr = std::unique_ptr>; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:125:72: error: template argument 2 is invalid using UniqueFilePtr = std::unique_ptr>; ^~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:128:34: error: 'makeUniqueCPtr' function uses 'auto' type specifier without trailing return type inline auto makeUniqueCPtr(T *ptr) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:128:34: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: In function 'auto fcitx::makeUniqueCPtr(T*)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:12: error: 'UniqueCPtr' was not declared in this scope return UniqueCPtr(ptr); ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:12: note: suggested alternative: 'makeUniqueCPtr' return UniqueCPtr(ptr); ^~~~~~~~~~ makeUniqueCPtr /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:129:24: error: expected primary-expression before '>' token return UniqueCPtr(ptr); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:35: error: 'UniqueCPtr' was not declared in this scope FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:35: note: suggested alternative: 'makeUniqueCPtr' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~~~~~~~ makeUniqueCPtr /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:46: error: expected primary-expression before 'char' FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:69: error: expected primary-expression before '*' token FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:132:70: error: 'n' was not declared in this scope FCITXUTILS_EXPORT ssize_t getline(UniqueCPtr &lineptr, size_t *n, ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:45: error: expected primary-expression before '*' token std::FILE *stream); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:46: error: 'stream' was not declared in this scope std::FILE *stream); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:46: note: suggested alternative: 'strtoq' std::FILE *stream); ^~~~~~ strtoq /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:133:52: error: expression list treated as compound expression in initializer [-fpermissive] std::FILE *stream); ^ In file included from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:8: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:17:26: error: 'UniqueCPtr' does not name a type; did you mean 'makeUniqueCPtr'? using GObjectUniquePtr = UniqueCPtr; ^~~~~~~~~~ makeUniqueCPtr /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:20:28: error: 'makeGObjectUnique' function uses 'auto' type specifier without trailing return type auto makeGObjectUnique(T *p) { ^ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:20:28: note: deduced return type only available with -std=c++14 or -std=gnu++14 /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h: In function 'auto fcitx::makeGObjectUnique(T*)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:21:12: error: 'GObjectUniquePtr' was not declared in this scope return GObjectUniquePtr(p); ^~~~~~~~~~~~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:21:12: note: suggested alternative: 'makeGObjectUnique' return GObjectUniquePtr(p); ^~~~~~~~~~~~~~~~ makeGObjectUnique /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:21:30: error: expected primary-expression before '>' token return GObjectUniquePtr(p); ^ In file included from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:8: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: At global scope: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:53:5: error: 'GObjectUniquePtr' does not name a type; did you mean 'makeGObjectUnique'? GObjectUniquePtr event_; ^~~~~~~~~~~~~~~~ makeGObjectUnique /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: In constructor 'fcitx::ShortcutEntry::ShortcutEntry(const QString&, KkcKeyEvent*, const QString&, KkcInputMode)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:21:30: error: class 'fcitx::ShortcutEntry' does not have any field named 'event_' : command_(command), event_(KKC_KEY_EVENT(g_object_ref(event))), ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:23:49: error: 'event_' was not declared in this scope gchar *keystr = kkc_key_event_to_string(event_.get()); ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:23:49: note: suggested alternative: 'event' gchar *keystr = kkc_key_event_to_string(event_.get()); ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: In copy constructor 'fcitx::ShortcutEntry::ShortcutEntry(const fcitx::ShortcutEntry&)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:29:47: error: 'const class fcitx::ShortcutEntry' has no member named 'event_'; did you mean 'event'? : ShortcutEntry(other.command_, other.event_.get(), other.label_, ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: In member function 'fcitx::ShortcutEntry& fcitx::ShortcutEntry::operator=(const fcitx::ShortcutEntry&)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:35:9: error: 'event_' was not declared in this scope event_.reset(KKC_KEY_EVENT(g_object_ref(other.event()))); ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:35:9: note: suggested alternative: 'event' event_.reset(KKC_KEY_EVENT(g_object_ref(other.event()))); ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: In member function 'KkcKeyEvent* fcitx::ShortcutEntry::event() const': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:47:41: error: 'event_' was not declared in this scope KkcKeyEvent *event() const { return event_.get(); } ^~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:47:41: note: suggested alternative: 'event' KkcKeyEvent *event() const { return event_.get(); } ^~~~~~ event /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h: At global scope: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:85:5: error: 'GObjectUniquePtr' does not name a type; did you mean 'makeGObjectUnique'? GObjectUniquePtr userRule_; ^~~~~~~~~~~~~~~~ makeGObjectUnique In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:27: error: 'underlying_type_t' in namespace 'std' does not name a template type typedef typename std::underlying_type_t storage_type; ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:27: note: suggested alternative: 'underlying_type' typedef typename std::underlying_type_t storage_type; ^~~~~~~~~~~~~~~~~ underlying_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:35:44: error: expected unqualified-id before '<' token typedef typename std::underlying_type_t storage_type; ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:37:32: error: expected ')' before 'i' explicit Flags(storage_type i = 0) : flags_(i) {} ~ ^~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:46:31: error: expected type-specifier before 'storage_type' constexpr inline operator storage_type() const { return flags_; } ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:47:22: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? constexpr inline storage_type toInteger() const { return flags_; } ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:22: error: declaration of 'operator=' as non-function Flags &operator=(storage_type f) { ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:20: error: expected ';' at end of member declaration Flags &operator=(storage_type f) { ^ ; /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:53:34: error: expected ')' before 'f' Flags &operator=(storage_type f) { ~ ^~ ) /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:130:5: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? storage_type flags_; ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In constructor 'constexpr fcitx::Flags::Flags(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:31: error: class 'fcitx::Flags' does not have any field named 'flags_' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:50: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In constructor 'constexpr fcitx::Flags::Flags(const std::initializer_list<_Tp>&)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:61: error: class 'fcitx::Flags' does not have any field named 'flags_' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:42:5: error: 'constexpr' constructor does not have empty body } ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:9: error: 'flags_' was not declared in this scope flags_ = static_cast(f); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:9: note: suggested alternative: 'Flags' flags_ = static_cast(f); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:50:30: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? flags_ = static_cast(f); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator!() const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:58:48: error: 'flags_' was not declared in this scope constexpr bool operator!() const { return !flags_; } ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:58:48: note: suggested alternative: 'Flags' constexpr bool operator!() const { return !flags_; } ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator&=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:60:9: error: 'flags_' was not declared in this scope flags_ &= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:60:9: note: suggested alternative: 'Flags' flags_ &= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator&=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:9: error: 'flags_' was not declared in this scope flags_ &= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:9: note: suggested alternative: 'Flags' flags_ &= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:64:31: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? flags_ &= static_cast(flag); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator|=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:68:9: error: 'flags_' was not declared in this scope flags_ |= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:68:9: note: suggested alternative: 'Flags' flags_ |= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator|=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:9: error: 'flags_' was not declared in this scope flags_ |= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:9: note: suggested alternative: 'Flags' flags_ |= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:72:31: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? flags_ |= static_cast(flag); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator^=(fcitx::Flags)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:76:9: error: 'flags_' was not declared in this scope flags_ ^= flag.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:76:9: note: suggested alternative: 'Flags' flags_ ^= flag.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'fcitx::Flags& fcitx::Flags::operator^=(Enum)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:9: error: 'flags_' was not declared in this scope flags_ ^= static_cast(flag); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:9: note: suggested alternative: 'Flags' flags_ ^= static_cast(flag); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:80:31: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? flags_ ^= static_cast(flag); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator|(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:84:22: error: 'flags_' was not declared in this scope return Flags(flags_ | f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:84:22: note: suggested alternative: 'Flags' return Flags(flags_ | f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator|(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:22: error: 'flags_' was not declared in this scope return Flags(flags_ | static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:22: note: suggested alternative: 'Flags' return Flags(flags_ | static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: error: 'storage_type' was not declared in this scope return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: note: suggested alternative: 'g_uri_get_type' return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:21: error: expected primary-expression before '(' token return Flags(flags_ | static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:87:43: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return Flags(flags_ | static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator^(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:90:22: error: 'flags_' was not declared in this scope return Flags(flags_ ^ f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:90:22: note: suggested alternative: 'Flags' return Flags(flags_ ^ f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator^(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:22: error: 'flags_' was not declared in this scope return Flags(flags_ ^ static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:22: note: suggested alternative: 'Flags' return Flags(flags_ ^ static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: error: 'storage_type' was not declared in this scope return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: note: suggested alternative: 'g_uri_get_type' return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:21: error: expected primary-expression before '(' token return Flags(flags_ ^ static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:93:43: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return Flags(flags_ ^ static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator&(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:96:22: error: 'flags_' was not declared in this scope return Flags(flags_ & f.flags_); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:96:22: note: suggested alternative: 'Flags' return Flags(flags_ & f.flags_); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator&(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:22: error: 'flags_' was not declared in this scope return Flags(flags_ & static_cast(f)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:22: note: suggested alternative: 'Flags' return Flags(flags_ & static_cast(f)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: error: 'storage_type' was not declared in this scope return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: note: suggested alternative: 'g_uri_get_type' return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:21: error: expected primary-expression before '(' token return Flags(flags_ & static_cast(f)); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:99:43: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return Flags(flags_ & static_cast(f)); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::operator~() const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:101:62: error: 'flags_' was not declared in this scope constexpr inline Flags operator~() const { return Flags(~flags_); } ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:101:62: note: suggested alternative: 'Flags' constexpr inline Flags operator~() const { return Flags(~flags_); } ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::unset(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:22: error: 'flags_' was not declared in this scope return Flags(flags_ & (~static_cast(f))); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:22: note: suggested alternative: 'Flags' return Flags(flags_ & (~static_cast(f))); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: error: 'storage_type' was not declared in this scope return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: note: suggested alternative: 'g_uri_get_type' return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:21: error: expected primary-expression before '(' token return Flags(flags_ & (~static_cast(f))); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:104:45: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return Flags(flags_ & (~static_cast(f))); ^~~~~~~~~~~~ g_uri_get_type /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr fcitx::Flags fcitx::Flags::unset(fcitx::Flags) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:108:22: error: 'flags_' was not declared in this scope return Flags(flags_ & (~f.flags_)); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:108:22: note: suggested alternative: 'Flags' return Flags(flags_ & (~f.flags_)); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:16: error: 'flags_' was not declared in this scope return flags_ == f.flags_; ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:16: note: suggested alternative: 'Flags' return flags_ == f.flags_; ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In member function 'constexpr bool fcitx::Flags::operator==(Enum) const': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:16: error: 'flags_' was not declared in this scope return flags_ == static_cast(f); ^~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:16: note: suggested alternative: 'Flags' return flags_ == static_cast(f); ^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:124:38: error: 'storage_type' does not name a type; did you mean 'g_uri_get_type'? return flags_ == static_cast(f); ^~~~~~~~~~~~ g_uri_get_type In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils.h:22, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:29, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h: At global scope: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: error: 'string_view' is not a member of 'std' struct UniversalPieceHelper { ^~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: note: 'std::string_view' is only available from C++17 onwards /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: error: 'string_view' is not a member of 'std' /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:34: note: 'std::string_view' is only available from C++17 onwards /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:43:45: error: template argument 1 is invalid struct UniversalPieceHelper { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:55:31: error: 'enable_if_t' in namespace 'std' does not name a template type typename = std::enable_if_t::value>> ^~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:55:26: note: suggested alternative: 'enable_if' typename = std::enable_if_t::value>> ^~~ enable_if /usr/pkg/include/Fcitx5/Utils/fcitx-utils/stringutils_details.h:55:42: error: expected '>' before '<' token typename = std::enable_if_t::value>> ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:26, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/fs.h:43:24: error: 'optional' in namespace 'std' does not name a template type FCITXUTILS_EXPORT std::optional readlink(const std::string &path); ^~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/fs.h:43:19: note: 'std::optional' is only available from C++17 onwards FCITXUTILS_EXPORT std::optional readlink(const std::string &path); ^~~ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:27, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:42:75: error: no matching function for call to 'fcitx::Flags::Flags()' explicit Key(KeySym sym = FcitxKey_None, KeyStates states = KeyStates(), ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:18, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:8: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:27, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:57:71: error: no matching function for call to 'fcitx::Flags::Flags()' static Key fromKeyCode(int code = 0, KeyStates states = KeyStates()) { ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:18, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:8: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:27, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:75:45: error: no matching function for call to 'fcitx::Flags::Flags()' KeyStates states = KeyStates()) const { ^ In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/misc.h:18, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:8: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(const fcitx::Flags&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate: 'constexpr fcitx::Flags::Flags(fcitx::Flags&&) [with Enum = fcitx::KeyState]' FCITX_INLINE_DEFINE_DEFAULT_DTOR_COPY_AND_MOVE(Flags) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:44:5: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate: 'fcitx::Flags::Flags(const std::initializer_list<_Tp>&) [with Enum = fcitx::KeyState]' constexpr Flags(const std::initializer_list &l) : flags_(0) { ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:38:15: note: candidate expects 1 argument, 0 provided /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate: 'constexpr fcitx::Flags::Flags(Enum) [with Enum = fcitx::KeyState]' constexpr Flags(Enum f) : flags_(static_cast(f)) {} ^~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:36:15: note: candidate expects 1 argument, 0 provided In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:30, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:53:72: error: 'callWithIndices' function uses 'auto' type specifier without trailing return type auto callWithIndices(F func, Sequence, std::tuple &tuple) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:53:72: note: deduced return type only available with -std=c++14 or -std=gnu++14 /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:59:54: error: 'callWithTuple' function uses 'auto' type specifier without trailing return type auto callWithTuple(F func, std::tuple &tuple) { ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/tuplehelpers.h:59:54: note: deduced return type only available with -std=c++14 or -std=gnu++14 In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/unixfd.h:16, from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:30, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:62:27: error: 'std::underlying_type_t' has not been declared void setLogLevel(std::underlying_type_t l); ^~~~~~~~~~~~~~~~~ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:62:44: error: expected ',' or '...' before '<' token void setLogLevel(std::underlying_type_t l); ^ /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h: In member function 'fcitx::LogMessageBuilder& fcitx::LogMessageBuilder::operator<<(const fcitx::Key&)': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/log.h:96:44: error: 'fcitx::KeyStates' {aka 'class fcitx::Flags'} has no member named 'toInteger' << " states=" << key.states().toInteger() << ")"; ^~~~~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp: In member function 'void fcitx::ShortcutModel::load(const QString&)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:84:9: error: 'userRule_' was not declared in this scope userRule_.reset(); ^~~~~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:84:9: note: suggested alternative: 'KkcUserRule' userRule_.reset(); ^~~~~~~~~ KkcUserRule /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:97:14: error: 'void userRule' has incomplete type auto userRule = makeGObjectUnique( ^~~~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp: In member function 'void fcitx::ShortcutModel::save()': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:134:9: error: 'userRule_' was not declared in this scope if (userRule_ && needSave_) { ^~~~~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:134:9: note: suggested alternative: 'KkcUserRule' if (userRule_ && needSave_) { ^~~~~~~~~ KkcUserRule In file included from /usr/pkg/include/glib-2.0/gobject/gobject.h:26, from /usr/pkg/include/glib-2.0/gobject/gbinding.h:31, from /usr/pkg/include/glib-2.0/glib-object.h:24, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:8: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp: In member function 'bool fcitx::ShortcutModel::add(const fcitx::ShortcutEntry&)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:145:38: error: 'userRule_' was not declared in this scope kkc_rule_get_keymap(KKC_RULE(userRule_.get()), entry.mode())); ^~~~~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:145:38: note: suggested alternative: 'KkcUserRule' /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp: In member function 'void fcitx::ShortcutModel::remove(const QModelIndex&)': /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:164:10: error: 'userRule_' was not declared in this scope if (!userRule_) { ^~~~~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:164:10: note: suggested alternative: 'KkcUserRule' if (!userRule_) { ^~~~~~~~~ KkcUserRule In file included from /usr/pkg/include/glib-2.0/gobject/gobject.h:26, from /usr/pkg/include/glib-2.0/gobject/gbinding.h:31, from /usr/pkg/include/glib-2.0/glib-object.h:24, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/common.h:11, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.h:10, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:8: /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:178:18: error: 'userRule_' was not declared in this scope KKC_RULE(userRule_.get()), entries_[index.row()].mode())); ^~~~~~~~~ /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:178:18: note: suggested alternative: 'KkcUserRule' In file included from /usr/pkg/include/Fcitx5/Utils/fcitx-utils/standardpath.h:27, from /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4/gui/shortcutmodel.cpp:11: /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h: In instantiation of 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const [with Enum = fcitx::KeyState]': /usr/pkg/include/Fcitx5/Utils/fcitx-utils/key.h:63:51: required from here /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:121:28: error: 'const class fcitx::Flags' has no member named 'flags_'; did you mean 'Flags'? return flags_ == f.flags_; ~~^~~~~~ Flags /usr/pkg/include/Fcitx5/Utils/fcitx-utils/flags.h:122:5: error: body of 'constexpr' function 'constexpr bool fcitx::Flags::operator==(const fcitx::Flags&) const [with Enum = fcitx::KeyState]' not a return-statement } ^ --- gui/CMakeFiles/fcitx5-kkc-config.dir/shortcutmodel.cpp.o --- *** [gui/CMakeFiles/fcitx5-kkc-config.dir/shortcutmodel.cpp.o] Error code 1 make[2]: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 A failure has been detected in another branch of the parallel make make[2]: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 --- src/CMakeFiles/kkc.dir/all --- *** [src/CMakeFiles/kkc.dir/all] Error code 2 make[1]: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 6 errors make[2]: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 --- gui/CMakeFiles/fcitx5-kkc-config.dir/all --- *** [gui/CMakeFiles/fcitx5-kkc-config.dir/all] Error code 2 make[1]: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 2 errors make[1]: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 *** [all] Error code 2 make: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 1 error make: stopped in /pbulk/work/inputmethod/fcitx5-kkc/work/fcitx5-kkc-5.0.4 *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/inputmethod/fcitx5-kkc *** Error code 1 Stop. make: stopped in /usr/pkgsrc/inputmethod/fcitx5-kkc