struct S { string bar; } int foo() { S s; s.bar = "one"; // compiles if this is commented out s.bar ~= "two"; return 0; } auto x = foo(); void main() { } Error: s.bar ~= "two" cannot be evaluated at compile time
This has already been fixed in git. *** This issue has been marked as a duplicate of issue 6276 ***
Great, thanks!