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

QColor compilation failure with gcc 4.9

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.14.0
    • Fix Version/s: 5.14.1
    • Component/s: GUI: Painting
    • Labels:
      None
    • Environment:
      Linux with gcc < 5

      Description

      Since commit de82d239f814cf2a717bea0defeee3732384e271 (Make QColor a literal type), QtGui compilation fails with the following message when using gcc 4.9:

      src/gui/painting/qcolor.h: In constructor 'constexpr QColor::QColor(int, int, int, int)':
      src/gui/painting/qcolor.h:79:18: sorry, unimplemented: use of the value of the object being constructed in a constant expression

      Since gcc 4.9 is still supported in Qt 5.14, please fix the issue. This is a known gcc issue that was fixed in gcc 5 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57694).

        Attachments

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

          Activity

            People

            Assignee:
            peppe Giuseppe D'Angelo
            Reporter:
            rawoul Arnaud Vrac
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes