Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.10.0, 5.11.1
-
MSVC 2015
MSVC 2017
-
-
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