Not sure how else to describe this bug. Reduced from a much larger test case:
```d
struct S {
private import std.traits : FieldNameTuple;
float x = 0;
}
void main()
{
S x;
foreach(v; x.FieldNameTuple!S) {}
}
```
Change `x.FieldNameTuple!S` to `S.FieldNameTuple!S` and it works.
Comment #1 by razvan.nitu1305 — 2022-11-11T11:41:12Z
I cannot reproduce this with the most recent version of master. So this seems to have been fixed. Could you try it yourself with the most recent version of master?
Closing as WORKSFORME.