http://d.puremagic.com/issues/show_bug.cgi?id=8041
Summary: __gshared/static problem Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2012-05-04 15:09:57 PDT --- I am not sure, I think this is valid code: struct Foo { __gshared static int x; } void main() { __gshared Foo f; // line 5 } But DMD 2.060alpha gives the error: test.d(5): Error: non-constant expression f = 0 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------