https://issues.dlang.org/show_bug.cgi?id=16976
--- Comment #1 from Sprink <sprink.nore...@gmail.com> --- Correction: inlining the array like that seems to work as the value is known. Using anything else though it doesn't work. int[] values = [ 0, 1, 2 ]; // dynamically foreach_reverse(int i, v ; values) { // error } --