Bug 23606 – betterC with CTFE and gc

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-01-08T06:28:13Z
Last change time
2023-01-16T21:04:19Z
Keywords
betterC, pull
Assigned to
No Owner
Creator
Walter Bright
See also
https://issues.dlang.org/show_bug.cgi?id=20101

Comments

Comment #0 by bugzilla — 2023-01-08T06:28:13Z
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
Comment #1 by bugzilla — 2023-01-08T06:31:38Z
Comment #2 by dlang-bot — 2023-01-08T06:56:49Z
@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
Comment #3 by dlang-bot — 2023-01-10T03:55:57Z
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
Comment #4 by jack — 2023-01-16T21:04:19Z
I found another example of the same issue https://issues.dlang.org/show_bug.cgi?id=23637