Issue 238077
Summary [HLSL] Improve variable length arrays error message
Labels HLSL
Assignees
Reporter spall
    ### Current Behavior in Clang
Current error: 'error: variable length arrays are not supported for the current target'
https://godbolt.org/z/zjWjjY5q5

The error in DXC: 'variable length arrays are not supported in HLSL'

### Required Changes in Clang
Add a new error diagnostic to HLSL to match the DXC error.

Emit the new error diagnostic when a variable length array is used.

Add/Update tests to show the new error diagnostic is used.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to