digitalmars.D.bugs - [Issue 13442] New: __gshared default value allowed in safe function
- via Digitalmars-d-bugs (27/27) Sep 09 2014 https://issues.dlang.org/show_bug.cgi?id=13442
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(); } ///////////////////////// --
Sep 09 2014