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
{{ message }}
Repository navigation
Warn when a conversion operator is implemented (since they aren't supported) #6860
Description
In HLSL 2021 operator overloading was enabled, and it allows users to write conversion operators. The problem is they are never called because DXC's overload resolution doesn't handle conversion operators in any context.
We should emit a warning when writing operators that are never callable. (TBD: should this warning default as error)
changed the title [-]Disallow conversion operators[/-][+]Warn when a conversion operator is implemented (since they aren't supported)[/+]on Aug 15, 2024
Activity
[-]Disallow conversion operators[/-][+]Warn when a conversion operator is implemented (since they aren't supported)[/+]devshgraphicsprogramming commentedon Aug 17, 2024
Yes please, that code never worked and might help to catch bugs.
llvm-beanz commentedon Aug 28, 2024
This is a duplicate of #5103