Details
-
Bug
-
Resolution: Duplicate
-
P0: Blocker
-
None
-
5.11.1
Description
When configuring Qt with the latest Visual Studio 2017 update 15.8, there is an error:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\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 C:\Qt\5.11.1\Src\qtbase\src\corelib\global\qrandom.cpp) C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\include\type_traits(1291): note: see reference to class template instantiation 'std::_Aligned<5004,64,double,false>' being compiled (compiling source file C:\Qt\5.11.1\Src\qtbase\src\corelib\global\qrandom.cpp) C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\include\type_traits(1298): note: see reference to class template instantiation 'std::_Aligned<5004,64,int,false>' being compiled (compiling source file C:\Qt\5.11.1\Src\qtbase\src\corelib\global\qrandom.cpp) C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\include\type_traits(1305): note: see reference to class template instantiation 'std::_Aligned<5004,64,short,false>' being compiled (compiling source file C:\Qt\5.11.1\Src\qtbase\src\corelib\global\qrandom.cpp) C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\include\type_traits(1312): note: see reference to class template instantiation 'std::_Aligned<5004,64,char,false>' being compiled (compiling source file C:\Qt\5.11.1\Src\qtbase\src\corelib\global\qrandom.cpp) C:\Qt\5.11.1\Src\qtbase\src\corelib\global\qrandom.cpp(402): note: see reference to class template instantiation 'std::aligned_storage<5004,64>' being compiled NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\cl.EXE"' : return code '0x2' Stop.
Attachments
Issue Links
- duplicates
-
QTBUG-69948 VS2017 15.8.0 compile error (x86)
- Closed