Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31517

Build failed: [gcc-15] /.../sol.hpp: error: class sol::optional<T&> has no member named construct [-Wtemplate-body]

    XMLWordPrintable

Details

    • Linux/X11
    • aea4c0949 (14.0)

    Description

       Using GCC 15 to build.

      Too long lines were shrinked:

      [1858/3319] /usr/bin/x86_64-pc-linux-gnu-g++ -DEXTENSIONSYSTEM_WITH_TESTOPTION -DLUA_AVAILABLE -DLUA_LIBRARY -DLUA_USE_LINUX -DLua_EXPORTS -DNANOTRACE_ENABLED -DQT_CONCURRENT_LIB -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_CREATOR -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQ
      FAILED: src/plugins/lua/CMakeFiles/Lua.dir/bindings/async.cpp.o
      /usr/bin/x86_64-pc-linux-gnu-g++ -DEXTENSIONSYSTEM_WITH_TESTOPTION -DLUA_AVAILABLE -DLUA_LIBRARY -DLUA_USE_LINUX -DLua_EXPORTS -DNANOTRACE_ENABLED -DQT_CONCURRENT_LIB -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_CREATOR -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO
      In file included from /var/tmp/portage/dev-qt/qt-creator-14.0.1/work/qt-creator-opensource-src-14.0.1/src/plugins/lua/bindings/../luaengine.h:15,
      from /var/tmp/portage/dev-qt/qt-creator-14.0.1/work/qt-creator-opensource-src-14.0.1/src/plugins/lua/bindings/async.cpp:4:
      /var/tmp/portage/dev-qt/qt-creator-14.0.1/work/qt-creator-opensource-src-14.0.1/src/libs/3rdparty/sol2/include/sol/sol.hpp: In member function T& sol::optional<T&>::emplace(Args&& ...):
      /var/tmp/portage/dev-qt/qt-creator-14.0.1/work/qt-creator-opensource-src-14.0.1/src/libs/3rdparty/sol2/include/sol/sol.hpp:6821:31: error: class sol::optional<T&> has no member named construct [-Wtemplate-body]
      6821 | this->construct(std::forward<Args>(args)...);

      ^~~~~~~~~

      Reference: https://bugs.gentoo.org/938486 and https://github.com/ThePhD/sol2/commit/d805d027e0a0a7222e936926139f06e23828ce9f

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            madwinter Marcus Tillmanns
            blackteahamburger Blacktea Hamburger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes