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

Q_MULTIMEDIA_EXPORT and QT_DEPRECATED_VERSION_X_ cannot be combined with gcc-12 and before

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.11
    • Core: Other
    • None
    • Linux/X11

    Description

      class Q_MULTIMEDIA_EXPORT QT_DEPRECATED_VERSION_X_6_11("yada.") 
      Foo
      {};
      

      this does not compile with older gcc versions, since it mixes attribute styles. using old-style attribute syntax for deprecations would work though:

      class 
          [[deprecated("yada")]] // QT_DEPRECATED_ currently expands to [[deprecated]]
          // __attribute__((deprecated("yada")))  // old gcc does accept the __attribute__ here
          __attribute__((visibility("default")))
          Bar
      {};
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes