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

Compile error with xlC 10.01 [patch]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • 4.7.1
    • 4.5.3
    • GUI: Painting
    • None
    • AIX 6, xlC 10.01

    Description

      There are two template functions that did not compile with xlC 10.01. Here is the first error:

      "painting/qrasterizer.cpp", line 322.59: 1540-0274 (S) The name lookup for "xOrder" did not find a declaration.
      "painting/qrasterizer.cpp", line 322.59: 1540-1292 (I) Static declarations are not considered for a function call if the function is not qualified.

      I have not studied the relevant part of the C++ standard so I do not know if the error is warranted. But I think I understand where the compiler might be coming from as resolution of references is critical for resuable template functions. And static linkage is likely not the norm for referenced functions.

      I have attached the patch that made things working for me.

      Attachments

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

        Activity

          People

            rodal Samuel Rødal
            porten Harri Porten
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes