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

QColor compilation failure with gcc 4.9

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P1: Critical
    • Resolution: Done
    • 5.14.0
    • 5.14.1
    • 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

        For Gerrit Dashboard: QTBUG-80997
        # Subject Branch Project Status CR V

        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