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

qtbase doesn't build with latest clang

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.1
    • 5.1.0 RC1
    • Core: Other
    • None
    • 658dfef50085cbf7ac1157528d0ccc2b8a698c34

    Description

      When trying to build qtbase stable (5.1.1., 37351bbe) with clang (svn r185149) under Linux, we get compile errors even when building qmake:

      /p/qtbase/include/QtCore/../../src/corelib/io/qurl.h:327:31: error: friend declaration specifying a default argument must be a definition
          friend Q_CORE_EXPORT uint qHash(const QUrl &url, uint seed = 0) Q_DECL_NOTHROW;
                                    ^
      1 error generated.
      

      According to N3337 it seems the compiler is right, cf. ยง8.3.6.4 [dcl.fct.default] "If a friend declaration specifies a default argument expression, that declaration shall be a definition and shall be the only declaration of the function or function template in the translation unit."

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes