Bug 23535 – extend pragma(crt_constructor) with semantics that static constructors have

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-12-02T17:13:35Z
Last change time
2024-12-13T19:26:13Z
Keywords
pull
Assigned to
No Owner
Creator
Walter Bright
See also
https://issues.dlang.org/show_bug.cgi?id=22367, https://issues.dlang.org/show_bug.cgi?id=22031, https://issues.dlang.org/show_bug.cgi?id=20428, https://issues.dlang.org/show_bug.cgi?id=21622, https://issues.dlang.org/show_bug.cgi?id=21621, https://issues.dlang.org/show_bug.cgi?id=21623, https://issues.dlang.org/show_bug.cgi?id=21620, https://issues.dlang.org/show_bug.cgi?id=19153, https://issues.dlang.org/show_bug.cgi?id=4071, https://issues.dlang.org/show_bug.cgi?id=6019
Moved to GitHub: dmd#18141 →

Comments

Comment #0 by bugzilla — 2022-12-02T17:13:35Z
pragma(crt_constructor) should be improved to: 1. make the default linkage "C" 2. allow modification of immutable variables
Comment #1 by bugzilla — 2022-12-02T18:38:45Z
crt_destructor should also have C linkage. crt_constructor should be marked @system because it can modify mutable variables.
Comment #2 by dlang-bot — 2022-12-02T19:56:05Z
@WalterBright created dlang/dmd pull request #14669 "fix Issue 23535 - extend pragma(crt_constructor) with semantics that …" fixing this issue: - fix Issue 23535 - extend pragma(crt_constructor) with semantics that static constructors have https://github.com/dlang/dmd/pull/14669
Comment #3 by robert.schadek — 2024-12-13T19:26:13Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18141 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB