Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103573

GCC internal compiler error: Segmentation fault when trying to compile Qt 6.3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.3.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      WSL + GCC 12.1
    • Platform/s:
      Linux/X11
    • Epic Link:

      Description

      Got following error when tried to compile sources after a migration from Qt 5.12.12 -> Qt 6.3:

      ==================================================================
      /opt/qt/qt-6.3.0/include/QtCore/qfuture_impl.h:137:34: internal compiler error: Segmentation fault
      137 | std::is_class_v<class T::QPrivateSignal>

      ^~~~~~~~~~~~~~
      0xe4c988 internal_error(char const*, ...)
      ???:0
      0x9ecbcd class_decl_loc_t::add(cp_parser*, unsigned int, tag_types, tree_node*, bool, bool)
      ???:0
      0x14e7873 c_parse_file()
      ???:0
      0x14c9d9e c_common_parse_file()
      ???:0
      =================================================================

      In order to reproduce it is needed only to have following includes:
      #include <QtWidgets>
      #include <QtConcurrent>

      together with a member variable like:

      QFutureWatcher<std::optional<StringVector>> targetsResultWatcher;

        Attachments

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

          Activity

            People

            Assignee:
            ioan76 Ioan Mîțiu
            Reporter:
            ioan76 Ioan Mîțiu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes