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

Compiling code based on Qt 6.7.0 with MSVC compiler vc16 (14.29.30133) causes compile error "unreachable code"

    XMLWordPrintable

Details

    • Windows
    • 2e8c6d467 (dev), 11f242174 (dev), ced930156 (6.7), 5edb9a6a0 (6.7)

    Description

      Compiling code based on Qt 6.7.0 with MSVC compiler vc16 (14.29.30133) causes compile error:

      Qt\6.7.0\include\QtCore\qstringbuilder.h(118) : error C2220: the following warning is treated as an error
      Qt\6.7.0\include\QtCore\qstringbuilder.h(118) : warning C4702: unreachable code

      Adding an else statement in qstringbuilder.h to if constexpr ( seems to fix the compile error.

      Code before (with compile error):

      Code after (without compile error):

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            geolo253 Georgios Lounis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes