From Max Samukha: Simple test cases still don't compile: string foo()() { string a, b; return a ~ b; } enum s = foo(); ./dmd -c -betterC test.d test.d(4): Error: array concatenation of expression `a ~ b` requires the GC which is not available with -betterC
Related: https://github.com/dlang/dmd/pull/14789
@WalterBright created dlang/dmd pull request #14791 "fix Issue 23606 - betterC with CTFE and gc" fixing this issue: - fix Issue 23606 - betterC with CTFE and gc https://github.com/dlang/dmd/pull/14791
dlang/dmd pull request #14791 "fix Issue 23606 - betterC with CTFE and gc" was merged into master: - 96817ff671fe1f6e0bd9be05fed1433bba9e5179 by Walter Bright: fix Issue 23606 - betterC with CTFE and gc https://github.com/dlang/dmd/pull/14791
I found another example of the same issue https://issues.dlang.org/show_bug.cgi?id=23637