-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Description:
In /std:c++17 mode, this triggers a deprecation warning in recent versions of MSVC. In /std:c++latest mode, now that microsoft/STL#380 has been merged, this will trigger an error in VS 2019 16.6 Preview 2.
Reproduce steps:
- git clone -c core.autocrlf=true https://github.com/microsoft/ChakraCore D:\Chakra\src
- cd /d D:\Chakra\src
- set CL=/D_HAS_AUTO_PTR_ETC=1 /D_SILENCE_CXX17_UNCAUGHT_EXCEPTION_DEPRECATION_WARNING /Zc:noexceptTypes- /wd5043 /wd5054
- msbuild /m /p:Platform=x64 /p:Configuration=Test /p:WindowsTargetPlatformVersion=10.0.17134.0 Build\Chakra.Core.sln /t:Rebuild 2>&1
ErrorMessage:
F:\gitP\microsoft\ChakraCore\bin\External\catch.hpp(7915): error C2039: 'uncaught_exception': is not a member of 'std' (compiling source file NativeTests.cpp) [F:\gitP\microsoft\ChakraCore\bin\NativeTests\NativeTests.vcxproj]