Comment #0 by razvan.nitu1305 — 2023-03-23T09:54:08Z
This could should error stating that `a~b` is not allowed in betterC
string foo()()
{
string a, b;
return a ~ b;
}
extern(C) void main()
{
foo();
}
However, it gives a linker error because the compiler chooses to simply not emit the functions that use the GC when using the -betterC switch.
Comment #1 by dlang-bot — 2024-12-07T16:43:26Z
@royalpinto007 created dlang/dmd pull request #17492 "fix Bugzilla 23803 - compile-time error for concatenation in -betterC" fixing this issue:
- fix Bugzilla 23803 - compile-time error for concatenation in -betterC
Signed-off-by: royalpinto007 <[email protected]>
https://github.com/dlang/dmd/pull/17492
Comment #2 by robert.schadek — 2024-12-13T19:27:58Z