[Issue 3243] Mixin 'static this()' bring on a compiler message ': __gate is thread local'

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Aug 10 09:43:45 PDT 2015


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

David Nadlinger <code at klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |code at klickverbot.at
         Resolution|---                         |INVALID

--- Comment #4 from David Nadlinger <code at klickverbot.at> ---
This is indeed an invalid bug as far as D2 is concerned, because the static
constructor is run once per thread and needs a gate variable to prevent being
run multiple times in the face of separate compilation. I suppose we could
improve the diagnostic message, though?

--


More information about the Digitalmars-d-bugs mailing list