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

MOC miscompiles code using stdexec headers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.7
    • Build tools: moc
    • None

    Description

      Take https://git.qt.io/vivoutil/libunifex-with-qt and  build the https://git.qt.io/vivoutil/libunifex-with-qt/-/tree/main/http_example_stdexec in it.

      In moc_httpdownloader.cpp, the following junk appears:

      Q_CONSTINIT const QMetaObject exec::exec::exec::exec::exec::exec::HttpDownloader::staticMetaObject = { {

      The multiple spewed instances of the exec namespace are all wrong, search&replacing them with whitespace  i.e. nuking them makes the code compile correctly.

      HttpDownloader is not in the exec namespace, and that namespace is closed correctly in the headers.

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            villevoutilainen_qt Ville Voutilainen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes