https://issues.dlang.org/show_bug.cgi?id=9570 --- Comment #4 from bearophile_hugs at eml.cc --- (In reply to Lionello Lunesu from comment #3) > https://github.com/D-Programming-Language/dmd/pull/3567 Is this supported? void main() { ubyte[256] data; foreach (ubyte i, ref x; data) x = i; } --