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

std::reverse_iterator<QDomNodeList::It>::operator-> fails on clang c++17

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P1: Critical
    • 6.9.0 FF
    • 6.9
    • XML: DOM
    • None
    • macOS
    • Foundation Sprint 121, Foundation Sprint 122, Foundation Sprint 123, Foundation Sprint 124, Foundation Sprint 125

    Description

      Failure Summary:
      The failure is related to the change that added iterator support to QDomNodeList (QTBUG-115076). The compilation error occurs due to the use of operator-> on a reverse iterator, which is not supported because the addressof function is deleted for rvalue references.

      Log snippet:

      ```
      error: call to deleted function 'addressof'
      return std::addressof(operator*());
      ^~~~~~~~~~~~~~
      note: in instantiation of member function 'std::reverse_iterator<QDomNodeList::It>::operator->' requested here
      QCOMPARE(iter->attributes().item(0).nodeValue().toInt(), i–);

      ```

      Failed Platform:
      macos-14-arm64-developer-build

      Note: When fixed, remove `#if __cplusplus >= 202002L` from reverse iterator test in tst_qdom.

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            isak.fyksen Isak Fyksen (Inactive)
            Vladimir Minenko Vladimir Minenko
            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