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

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.3.0
    • WSL + GCC 12.1
    • Linux/X11

    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

            ioan76 Ioan Mîțiu
            ioan76 Ioan Mîțiu
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes