https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101490
--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Reduced test
---
struct test
{
int[0] foo;
}
void main()
{
test* t;
auto a = cast(typeof(t.foo)[0])t.foo;
write(a);
}
void write(S)(S args)
{
foreach (arg; args)
{
}
}
