[HLSL] Invalid struct field definition not producing error.
Open
HLSL
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
This struct definition should produce an error:
```
struct MoreBFields {
uint : G;
};
```
It is suspected that the G is being parsed as a semantic.
https://godbolt.org/z/5PfKenYzG
Contributor guide
Research direction
Start with the HLSL struct reproducer shown in the issue and compare its behavior with the linked Godbolt example. Trace how `uint : G;` is parsed, with the suspected semantic interpretation in mind; done means this invalid struct field produces an error.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100