Summary: __gshared/static problem
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to