DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

integral_constant is exposed to the global namespace in DXC (trunk)

Open KStocky opened this issue 1 year ago • 0 comments

Description integral_constant is defined in the global namespace in DXC(trunk). The primary template appears to be declared as follows:

template<typename T>
struct integral_constant;

I don't think this type should be defined in the global namespace.

Steps to Reproduce

This should not compile: https://godbolt.org/z/hKxdKhW7e. DXC 1.8.2403 does not compile this code: https://godbolt.org/z/vha9GennT

Environment

  • DXC version: trunk
  • Host Operating System N/A

KStocky avatar May 23 '24 16:05 KStocky