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

<< (QUtf8StringView) broke QDebug

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.0.0 Beta4
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Clang 11
    • Platform/s:
      Linux/X11
    • Commits:
      bf820bd3e2eb9d7670fa5b5b6e9bc00c5b38d1ba

      Description

      Can't get any builds that use qdebug.h to work in 6.0.0 Beta4:

      In file included from /usr/include/qt6/QtCore/QCoreApplication:1:
      In file included from /usr/include/qt6/QtCore/qcoreapplication.h:53:
      /usr/include/qt6/QtCore/qdebug.h:147:65: error: cannot initialize a parameter of type 'const char *' with an rvalue of type 'QBasicUtf8StringView<true>::const_pointer' (aka 'const char8_t *')
       inline QDebug &operator<<(QUtf8StringView s) \{ putByteArray(s.data(), s.size(), ContainsBinary); return maybeSpace(); }
       ^~~~~~~~
      /usr/include/qt6/QtCore/qdebug.h:97:35: note: passing argument to parameter 'begin' here
       void putByteArray(const char *begin, size_t length, Latin1Content content);
       ^
      1 error generated.
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              thiago Thiago Macieira
              Reporter:
              jeremykim232323 Jeremy Kim
              PM Owner:
              Maurice Kalinowski Maurice Kalinowski
              RnD Owner:
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes