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

MSVC Compiler error when using -Zc:wchar_t-

    XMLWordPrintable

Details

    • Windows
    • c575977645ece4b8d1e6aaec21daa043da5affa8

    Description

      while compiling an GUI application with Msvc2015 32 bit compiler reports error function already defined.

       1>C:\Qt\Qt5.10.0\5.10.0\msvc2015\include\QtCore/qchar.h(94): error C2535: 'QChar::QChar(ushort) noexcept': member function already defined or declared
      1> C:\Qt\Qt5.10.0\5.10.0\msvc2015\include\QtCore/qchar.h(82): note: see declaration of 'QChar::QChar'
      

      Seems to be regression from 5.9 to 5.10.

      Steps to reproduce:
      Modify msvc-desktop.conf mkspec:

      QMAKE_CFLAGS = -nologo -Zc:wchar_t
      

      to

      QMAKE_CFLAGS = -nologo -Zc:wchar_t-
      

      Relevant commits "QChar: add (char16_t) and (wchar_t) ctors" 208c71768cca1dda9ea42f3a395889a85810005e https://codereview.qt-project.org/#/c/188360/I2d18ea3a37e869b8ea9f4036d7200d9d13c7d929

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            stefanl68 Stefan Latsch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes