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

QColor compilation failure with gcc 4.9

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.14.1
    • 5.14.0
    • GUI: Painting
    • None
    • Linux with gcc < 5
    • Linux/Wayland, Linux/X11
    • c61cedcc5475a77fb94ed12788f61039835f8079

    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

            peppe Giuseppe D'Angelo
            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