September 09, 2014 [Issue 13442] New: __gshared default value allowed in @safe function signature | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13442 Issue ID: 13442 Summary: __gshared default value allowed in @safe function signature Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: accepts-invalid, safe Severity: minor Priority: P1 Component: DMD Assignee: nobody@puremagic.com Reporter: thecybershadow@gmail.com __gshared access in @safe code is normally not allowed. But this compiles: ///////// test.d //////// __gshared int var; void f(int i = var) @safe { } void main() @safe { f(); } ///////////////////////// -- |
Copyright © 1999-2021 by the D Language Foundation