We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related to #4340.
// RUN: %dxc -T vs_6_0 %s | FileCheck %s // Internal Compiler error: llvm::cast<X>() argument of incompatible type! struct MyStruct { int Idx; void Set() { Idx = 1; } } Obj; void main() { Obj.Set(); }
The text was updated successfully, but these errors were encountered:
Godbolt link: https://godbolt.org/z/adMedG6xc
Sorry, something went wrong.
This requires a language change to get right because HLSL's overload resolution doesn't handle const-ness of the implicit object.
Linking the language spec proposal: https://github.com/microsoft/hlsl-specs/blob/main/proposals/0007-const-instance-methods.md
No branches or pull requests
Related to #4340.
The text was updated successfully, but these errors were encountered: