https://issues.dlang.org/show_bug.cgi?id=18135
--- Comment #4 from Martin Nowak <[email protected]> --- cat > bug.d << CODE import std.regex : RegexMatch; struct MapResult(Range) { Range input; } void bug() { MapResult!(RegexMatch!string) res; res = MapResult!(RegexMatch!string)(); } CODE dmd -c bug.d ---- bug.d(11): Error: cannot modify struct res MapResult!(RegexMatch!string) with immutable members ---- --
