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

MinGW/GCC compiler error in qtactiveqt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.5, 5.10.1
    • 5.9.0, 5.9.1, 5.9.2, 5.9.3, 5.10.0
    • ActiveX Support
    • None
    • MinGW-builds i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z, x86_64-7.2.0-release-posix-seh-rt_v5_rev0

    Description

      Compiling qtactiveqt with newer MinGW gcc results in a compiler error:

      In file included from c:\Users\qt\work\install\include/QtCore/qobject.h:46:0,
      from c:\Users\qt\work\install\include/QtCore/qfactoryinterface.h:43,
      from control\qaxfactory.h:56:
      c:\Users\qt\work\install\include/QtCore/qobjectdefs.h:179:32: error: 'virtual const QMetaObject* QObject::metaObject() const' was hidden [-Werror=overloaded-virtual]
      virtual const QMetaObject *metaObject() const; \
      ^
      c:\Users\qt\work\install\include/QtCore/qobject.h:118:5: note: in expansion of macro 'Q_OBJECT'
      Q_OBJECT
      ^~~~~~~~
      

      This is although the compiler warning "overloaded-virtual" should be disabled via a

       #pragma GCC diagnostic ignored "-Woverloaded-virtual"
      

      that was added in https://codereview.qt-project.org/#/c/110824/4/src/activeqt/control/qaxfactory.h . This smells like a compiler issue...

      Attachments

        Issue Links

          Activity

            People

              kkohne Kai Köhne
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: