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

MOC miscompiles code using stdexec headers

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes