DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

`enum class` is not a constexpr

Open devshgraphicsprogramming opened this issue 1 year ago • 1 comments

Description Unscoped enums work fine with my integral_constant, scoped don't.

Steps to Reproduce Actual Behavior

Enum Class not constexpr: https://godbolt.org/z/hheGKo9vx

unscoped enum is constexpr: https://godbolt.org/z/7rorK5qoW

Environment

  • DXC version: Latest Godbolt trunk
  • Host Operating System: Linux I guess?

While we'd consider accepting PR that addresses this issue, we're not planning on investing in fixing this in DXC. This won't be an issue in clang.

damyanp avatar Jun 20 '24 17:06 damyanp

This is a duplicate of an issue you already filed: https://github.com/microsoft/DirectXShaderCompiler/issues/5554

llvm-beanz avatar Feb 28 '25 22:02 llvm-beanz