| Issue |
244744
|
| Summary |
[HLSL][202x] auto deduces types it shouldn't be able to deduce
|
| Labels |
HLSL
|
| Assignees |
spall
|
| Reporter |
spall
|
```
using namespace hlsl;
RWBuffer<float> source : register(u0);
void TypesWeCannotDeduceinHLSL() {
auto str = "abc"; // needs to be rejected
auto buffer2 = ResourceDescriptorHeap[0]; // needs to be rejected
auto buffer3 = SamplerDescriptorHeap; // needs to be rejected
}
```
These three auto calls in Clang should produce errors.
https://godbolt.org/z/dev336zh3
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs