Bug 23803 – Link error instead of error message when using betterC

Status
NEW
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-03-23T09:54:08Z
Last change time
2024-12-13T19:27:58Z
Keywords
pull
Assigned to
No Owner
Creator
RazvanN
Moved to GitHub: dmd#20251 →

Comments

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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20251 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB