Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.11.1
-
None
-
-
0ef66e98ccf4946a0e4513ab5fc157df0f0aca4e
Description
Try to build Qt with latest MSVC got an error:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\type_traits(1271): error C2338: You've instantiated std::aligned_storage<Len, Align> with an extended alignment (in other words, Align > alignof(max_align_t)). Before VS 2017 15.8, the member type would non-conformingly have an alignment of only alignof(max_align_t). VS 2017 15.8 was fixed to handle this correctly, but the fix inherently changes layout and breaks binary compatibility (*only* for uses of aligned_storage with extended alignments). Please define either (1) _ENABLE_EXTENDED_ALIGNED_STORAGE to acknowledge that you understand this message and that you actually want a type with an extended alignment, or (2) _DISABLE_EXTENDED_ALIGNED_STORAGE to silence this message and get the old non-conformant behavior. (compiling source file D:\dev\Qt\src\5.11.1\d-x32\qtbase\src\corelib\global\qrandom.cpp)
Attachments
Issue Links
- is duplicated by
-
QTBUG-69994 Building Qt with MSVC 15.8 ends in assertion during configure
- Closed
-
QTBUG-69957 Configure is broken for Qt builds with Visual Studio 2017 15.8 update
- Closed
- relates to
-
QTCREATORBUG-20955 QTCreator failed to build on Windows due to error C2338
- Closed
-
QTBUG-70232 lots of C2139 errors on Visual Studio 2017 15.8
- Closed