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

qtbase requires RTTI in Qt6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 6.3.0
    • None
    • Windows

    Description

      See my comment here.

      It seems that some dynamic_cast usage and dependency on RTTI has snuck into Qt over time. I find this surprising as I haven't seen this requirement change listed anywhere in Qt6 documentation / porting information. Since the commit which caused the assert I initially noticed checks __cpp_rtti, it seems like Qt does still intend to support non-RTTI builds.

      Should the RTTI usages pointed out by the compiler warnings be considered bugs, then?
      Warnings can be seen here https://bugreports.qt.io/browse/QTBUG-98905?focusedCommentId=657946&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-657946

      If the RTTI usage could be limited to Qt-internal usage that would be fine, but IMO it's a kind of large breaking API change if you require users of Qt to start enabling RTTI, now.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              shuffle2 shuffle2
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes