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: [email protected]
Reporter: [email protected]
__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();
}
/////////////////////////
--