January 08, 2023
https://issues.dlang.org/show_bug.cgi?id=23606

          Issue ID: 23606
           Summary: betterC with CTFE and gc
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: bugzilla@digitalmars.com

>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

--