You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to first acknowledge that this is a bit silly, but when casting a variable to a (void), a much more internal-compiler sort of error is returned when compiled to spir-v. No error occurs when compiling to dxil. This happens with every type I've tried (uint, float, bool, struct, RWByteAddressBuffer)
(The reason for doing this (void) nonsense is selectively silencing unused-variable warnings in a rather large code base in cases where keeping the sometimes-unused variables is unavoidable. Also, it's in a #define so pragmas to silence the warning don't work.)
Host Operating System: Windows 11 22h2 (22621.4751) and also godbolt
This might be related to #5103, as it is the only issue that contains CStyleCastExpr when i searched, but that seemed to be an issue with the dxil side, while this error only happens when outputting spir-v
The text was updated successfully, but these errors were encountered:
Description
I'd like to first acknowledge that this is a bit silly, but when casting a variable to a (void), a much more internal-compiler sort of error is returned when compiled to spir-v. No error occurs when compiling to dxil. This happens with every type I've tried (uint, float, bool, struct, RWByteAddressBuffer)
(The reason for doing this (void) nonsense is selectively silencing unused-variable warnings in a rather large code base in cases where keeping the sometimes-unused variables is unavoidable. Also, it's in a #define so pragmas to silence the warning don't work.)
Steps to Reproduce
https://godbolt.org/z/6bd1jThrx
Actual Behavior
Environment
This might be related to #5103, as it is the only issue that contains
CStyleCastExpr
when i searched, but that seemed to be an issue with the dxil side, while this error only happens when outputting spir-vThe text was updated successfully, but these errors were encountered: