https://issues.dlang.org/show_bug.cgi?id=21369 --- Comment #3 from Steven Schveighoffer <schveiguy at gmail.com> --- (In reply to apham from comment #2) > Create temp var is OK That doesn't trigger the bug because then s is an lvalue. --