Skip to content

DXC won't compile now with MSVC build tools v14.51 #8449

@keptsecret

Description

@keptsecret

Description
Latest MSVC update (v14.51) results in warnings being treated as errors when trying to compile DXC.
The following error is shown

2>\dxc\dxc\include\llvm\ADT\StringRef.h(579,10): warning C5285: cannot declare a specialization for 'std::is_nothrow_constructible': Specializing this standard library template is forbidden by N5014 [meta.rqmts]/4 [C:\Users\Nut\Nabla-origin\build\dynamic\3rdparty\dxc\build\lib\Transforms\Utils\LLVMTransformUtils.vcxproj]
2>    (compiling source file '../../../../../../../../../3rdparty/dxc/dxc/lib/Transforms/Utils/SimplifyIndVar.cpp')
2>        C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.51.36231\include\type_traits(1014,43):
2>        see declaration of 'std::is_nothrow_constructible'
2>        C:\Users\Nut\Nabla-origin\3rdparty\dxc\dxc\include\llvm\ADT\StringRef.h(579,10):
2>        to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings

And it happens across various source files.

Steps to Reproduce
Update Visual Studio and build tools to the latest version (v14.51). Try to compile DXC.

Actual Behavior
It should compile

Environment

  • DXC version 54afd2c
  • Host Operating System Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triage

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions