← Back to index
|
Original Bugzilla link
Bug 24783 – ref and out declarations can be initialized with null references
Status
NEW
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-09-24T08:49:26Z
Last change time
2024-12-13T19:37:34Z
Assigned to
No Owner
Creator
Walter Bright
Moved to GitHub: dmd#20518 →
Comments
Comment #0
by bugzilla — 2024-09-24T08:49:26Z
@safe: void test(ref int r, out int o); void foo() { int* p; test(*p, *p); } compiles without complaint. They should get a null check.
Comment #1
by robert.schadek — 2024-12-13T19:37:34Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/20518
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB