[Issue 4419] __gshared static in class has no effect

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Aug 9 14:38:09 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=4419

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ag0aep6g at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #12 from ag0aep6g at gmail.com ---
(In reply to torhu from comment #0)
> This example prints "0", instead of the expected "1":

Prints "1" since 2.066.

(In reply to Trass3r from comment #1)
> __gshared static int a;
> static __gshared int b;
> 
> > dmd -c -vtls foo.d
> foo(1): a is thread local

No output since 2.066.

Closing as WORKSFORME.

--


More information about the Digitalmars-d-bugs mailing list